Class IamPolicyConstraints

    • Method Detail

      • sourceIp

        public final EnabledOrDisabled sourceIp()

        When SourceIp is Enabled the worker's IP address when a task is rendered in the worker portal is added to the IAM policy as a Condition used to generate the Amazon S3 presigned URL. This IP address is checked by Amazon S3 and must match in order for the Amazon S3 resource to be rendered in the worker portal.

        If the service returns an enum value that is not available in the current SDK version, sourceIp will return EnabledOrDisabled.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from sourceIpAsString().

        Returns:
        When SourceIp is Enabled the worker's IP address when a task is rendered in the worker portal is added to the IAM policy as a Condition used to generate the Amazon S3 presigned URL. This IP address is checked by Amazon S3 and must match in order for the Amazon S3 resource to be rendered in the worker portal.
        See Also:
        EnabledOrDisabled
      • sourceIpAsString

        public final String sourceIpAsString()

        When SourceIp is Enabled the worker's IP address when a task is rendered in the worker portal is added to the IAM policy as a Condition used to generate the Amazon S3 presigned URL. This IP address is checked by Amazon S3 and must match in order for the Amazon S3 resource to be rendered in the worker portal.

        If the service returns an enum value that is not available in the current SDK version, sourceIp will return EnabledOrDisabled.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from sourceIpAsString().

        Returns:
        When SourceIp is Enabled the worker's IP address when a task is rendered in the worker portal is added to the IAM policy as a Condition used to generate the Amazon S3 presigned URL. This IP address is checked by Amazon S3 and must match in order for the Amazon S3 resource to be rendered in the worker portal.
        See Also:
        EnabledOrDisabled
      • vpcSourceIp

        public final EnabledOrDisabled vpcSourceIp()

        When VpcSourceIp is Enabled the worker's IP address when a task is rendered in private worker portal inside the VPC is added to the IAM policy as a Condition used to generate the Amazon S3 presigned URL. To render the task successfully Amazon S3 checks that the presigned URL is being accessed over an Amazon S3 VPC Endpoint, and that the worker's IP address matches the IP address in the IAM policy. To learn more about configuring private worker portal, see Use Amazon VPC mode from a private worker portal.

        If the service returns an enum value that is not available in the current SDK version, vpcSourceIp will return EnabledOrDisabled.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from vpcSourceIpAsString().

        Returns:
        When VpcSourceIp is Enabled the worker's IP address when a task is rendered in private worker portal inside the VPC is added to the IAM policy as a Condition used to generate the Amazon S3 presigned URL. To render the task successfully Amazon S3 checks that the presigned URL is being accessed over an Amazon S3 VPC Endpoint, and that the worker's IP address matches the IP address in the IAM policy. To learn more about configuring private worker portal, see Use Amazon VPC mode from a private worker portal.
        See Also:
        EnabledOrDisabled
      • vpcSourceIpAsString

        public final String vpcSourceIpAsString()

        When VpcSourceIp is Enabled the worker's IP address when a task is rendered in private worker portal inside the VPC is added to the IAM policy as a Condition used to generate the Amazon S3 presigned URL. To render the task successfully Amazon S3 checks that the presigned URL is being accessed over an Amazon S3 VPC Endpoint, and that the worker's IP address matches the IP address in the IAM policy. To learn more about configuring private worker portal, see Use Amazon VPC mode from a private worker portal.

        If the service returns an enum value that is not available in the current SDK version, vpcSourceIp will return EnabledOrDisabled.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from vpcSourceIpAsString().

        Returns:
        When VpcSourceIp is Enabled the worker's IP address when a task is rendered in private worker portal inside the VPC is added to the IAM policy as a Condition used to generate the Amazon S3 presigned URL. To render the task successfully Amazon S3 checks that the presigned URL is being accessed over an Amazon S3 VPC Endpoint, and that the worker's IP address matches the IP address in the IAM policy. To learn more about configuring private worker portal, see Use Amazon VPC mode from a private worker portal.
        See Also:
        EnabledOrDisabled
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)