aws_cloudfront_signed_url

Creator: coderz1093

Last updated:

0 purchases

aws_cloudfront_signed_url Image
aws_cloudfront_signed_url Images

Languages

Categories

Add to Cart

Description:

aws cloudfront signed url

aws_cloudfront_signed_url #
Create a signed AWS CloudFront URL using a custom policy
Example #
final String privateKey = """-----BEGIN RSA PRIVATE KEY-----
Key123
-----END RSA PRIVATE KEY-----""";
String url = 'http://d111111abcdef8.cloudfront.net/images/horizon.jpg';
String cloudFrontSignedUrl = await AWSCloudFrontSignedUrl(
keyPairId: "K2JCJMDEHXQW5F",
privateKey: privateKey,
).signUrl(
resourceUrl: url,
ipAddress: "0.0.0.0/32",
dateLessThan: DateTime(2022,3,1),
dateGreaterThan: DateTime(2021,3,1),
);
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.