String policy = CloudFrontService.buildPolicyForSignedUrl( // Resource path (optional, can include '*' and '?' wildcards) policyResourcePath, // DateLessThan ServiceUtils.parseIso8601Date("2011-11-14T22:20:00.000Z"), // CIDR IP address restriction (optional, 0.0.0.0/0 means everyone) "0.0.0.0/0", // DateGreaterThan (optional) ServiceUtils.parseIso8601Date("2011-10-16T06:31:56.000Z") );
ArgumentError: unexpected value at params[:expires_in]
I'm looking for a convenience method that, given an ARN, will tell me the "official" name of the resource type. It doesn't seem to be as simple as
require 'aws-sdk-core' a = Aws::ARNParser::parse(SOME_ARN) (["AWS"] + [a.service, a.resource.split(":")].map(&:capitalize)).join("::")
And I can't find a corresponding client method that does this specifically.
I have a question regarding access points. Documentation states "When using this API with an access point, you must direct requests to the access point hostname." I am unsure how to configure the client object with the access point hostname and when I do not and simply replace the bucket name with the access point arn, I get the following error. ArgumentError: bucket name must not contain a forward-slash (/)
I am attempting to use list_objects_v2 and put_object