All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.sagemaker.inputs.WorkteamWorkerAccessConfigurationS3PresignIamPolicyConstraintsArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

The newest version!
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.sagemaker.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class WorkteamWorkerAccessConfigurationS3PresignIamPolicyConstraintsArgs extends com.pulumi.resources.ResourceArgs {

    public static final WorkteamWorkerAccessConfigurationS3PresignIamPolicyConstraintsArgs Empty = new WorkteamWorkerAccessConfigurationS3PresignIamPolicyConstraintsArgs();

    /**
     * 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. Valid values are `Enabled` or `Disabled`
     * 
     */
    @Import(name="sourceIp")
    private @Nullable Output sourceIp;

    /**
     * @return 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. Valid values are `Enabled` or `Disabled`
     * 
     */
    public Optional> sourceIp() {
        return Optional.ofNullable(this.sourceIp);
    }

    /**
     * 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](https://docs.aws.amazon.com/sagemaker/latest/dg/samurai-vpc-worker-portal.html). Valid values are `Enabled` or `Disabled`
     * 
     */
    @Import(name="vpcSourceIp")
    private @Nullable Output vpcSourceIp;

    /**
     * @return 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](https://docs.aws.amazon.com/sagemaker/latest/dg/samurai-vpc-worker-portal.html). Valid values are `Enabled` or `Disabled`
     * 
     */
    public Optional> vpcSourceIp() {
        return Optional.ofNullable(this.vpcSourceIp);
    }

    private WorkteamWorkerAccessConfigurationS3PresignIamPolicyConstraintsArgs() {}

    private WorkteamWorkerAccessConfigurationS3PresignIamPolicyConstraintsArgs(WorkteamWorkerAccessConfigurationS3PresignIamPolicyConstraintsArgs $) {
        this.sourceIp = $.sourceIp;
        this.vpcSourceIp = $.vpcSourceIp;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(WorkteamWorkerAccessConfigurationS3PresignIamPolicyConstraintsArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private WorkteamWorkerAccessConfigurationS3PresignIamPolicyConstraintsArgs $;

        public Builder() {
            $ = new WorkteamWorkerAccessConfigurationS3PresignIamPolicyConstraintsArgs();
        }

        public Builder(WorkteamWorkerAccessConfigurationS3PresignIamPolicyConstraintsArgs defaults) {
            $ = new WorkteamWorkerAccessConfigurationS3PresignIamPolicyConstraintsArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param 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. Valid values are `Enabled` or `Disabled`
         * 
         * @return builder
         * 
         */
        public Builder sourceIp(@Nullable Output sourceIp) {
            $.sourceIp = sourceIp;
            return this;
        }

        /**
         * @param 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. Valid values are `Enabled` or `Disabled`
         * 
         * @return builder
         * 
         */
        public Builder sourceIp(String sourceIp) {
            return sourceIp(Output.of(sourceIp));
        }

        /**
         * @param 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](https://docs.aws.amazon.com/sagemaker/latest/dg/samurai-vpc-worker-portal.html). Valid values are `Enabled` or `Disabled`
         * 
         * @return builder
         * 
         */
        public Builder vpcSourceIp(@Nullable Output vpcSourceIp) {
            $.vpcSourceIp = vpcSourceIp;
            return this;
        }

        /**
         * @param 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](https://docs.aws.amazon.com/sagemaker/latest/dg/samurai-vpc-worker-portal.html). Valid values are `Enabled` or `Disabled`
         * 
         * @return builder
         * 
         */
        public Builder vpcSourceIp(String vpcSourceIp) {
            return vpcSourceIp(Output.of(vpcSourceIp));
        }

        public WorkteamWorkerAccessConfigurationS3PresignIamPolicyConstraintsArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy