Interface CustomSignerRequest.Builder

    • Method Detail

      • resourceUrl

        CustomSignerRequest.Builder resourceUrl​(String resourceUrl)
        Configure the resource URL to be signed

        The URL or path that uniquely identifies a resource within a distribution. For standard distributions the resource URL will be "http://" + distributionName + "/" + objectKey (may also include URL parameters. For distributions with the HTTPS required protocol, the resource URL must start with "https://"

      • activeDate

        CustomSignerRequest.Builder activeDate​(Instant activeDate)
        Configure the active date of the signed URL or signed cookie - for custom policies (optional field)
      • ipRange

        CustomSignerRequest.Builder ipRange​(String ipRange)
        Configure the IP range of the signed URL or signed cookie - for custom policies (optional field)

        The allowed IP address range of the client making the GET request, in IPv4 CIDR form (e.g. 192.168.0.1/24). IPv6 format is not supported.

      • resourceUrlPattern

        CustomSignerRequest.Builder resourceUrlPattern​(String resourceUrlPattern)
        Configure the resource URL pattern to be used in the policy

        For custom policies, this specifies the URL pattern that determines which files can be accessed with this signed URL. This can include wildcard characters (*) to grant access to multiple files or paths. If not specified, the resourceUrl value will be used in the policy.