Interface VpcBlockPublicAccessExclusion.Builder

    • Method Detail

      • exclusionId

        VpcBlockPublicAccessExclusion.Builder exclusionId​(String exclusionId)

        The ID of the exclusion.

        Parameters:
        exclusionId - The ID of the exclusion.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • internetGatewayExclusionMode

        VpcBlockPublicAccessExclusion.Builder internetGatewayExclusionMode​(String internetGatewayExclusionMode)

        The exclusion mode for internet gateway traffic.

        • allow-bidirectional: Allow all internet traffic to and from the excluded VPCs and subnets.

        • allow-egress: Allow outbound internet traffic from the excluded VPCs and subnets. Block inbound internet traffic to the excluded VPCs and subnets. Only applies when VPC Block Public Access is set to Bidirectional.

        Parameters:
        internetGatewayExclusionMode - The exclusion mode for internet gateway traffic.

        • allow-bidirectional: Allow all internet traffic to and from the excluded VPCs and subnets.

        • allow-egress: Allow outbound internet traffic from the excluded VPCs and subnets. Block inbound internet traffic to the excluded VPCs and subnets. Only applies when VPC Block Public Access is set to Bidirectional.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        InternetGatewayExclusionMode, InternetGatewayExclusionMode
      • internetGatewayExclusionMode

        VpcBlockPublicAccessExclusion.Builder internetGatewayExclusionMode​(InternetGatewayExclusionMode internetGatewayExclusionMode)

        The exclusion mode for internet gateway traffic.

        • allow-bidirectional: Allow all internet traffic to and from the excluded VPCs and subnets.

        • allow-egress: Allow outbound internet traffic from the excluded VPCs and subnets. Block inbound internet traffic to the excluded VPCs and subnets. Only applies when VPC Block Public Access is set to Bidirectional.

        Parameters:
        internetGatewayExclusionMode - The exclusion mode for internet gateway traffic.

        • allow-bidirectional: Allow all internet traffic to and from the excluded VPCs and subnets.

        • allow-egress: Allow outbound internet traffic from the excluded VPCs and subnets. Block inbound internet traffic to the excluded VPCs and subnets. Only applies when VPC Block Public Access is set to Bidirectional.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        InternetGatewayExclusionMode, InternetGatewayExclusionMode
      • resourceArn

        VpcBlockPublicAccessExclusion.Builder resourceArn​(String resourceArn)

        The ARN of the exclusion.

        Parameters:
        resourceArn - The ARN of the exclusion.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • reason

        VpcBlockPublicAccessExclusion.Builder reason​(String reason)

        The reason for the current exclusion state.

        Parameters:
        reason - The reason for the current exclusion state.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • creationTimestamp

        VpcBlockPublicAccessExclusion.Builder creationTimestamp​(Instant creationTimestamp)

        When the exclusion was created.

        Parameters:
        creationTimestamp - When the exclusion was created.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • lastUpdateTimestamp

        VpcBlockPublicAccessExclusion.Builder lastUpdateTimestamp​(Instant lastUpdateTimestamp)

        When the exclusion was last updated.

        Parameters:
        lastUpdateTimestamp - When the exclusion was last updated.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • deletionTimestamp

        VpcBlockPublicAccessExclusion.Builder deletionTimestamp​(Instant deletionTimestamp)

        When the exclusion was deleted.

        Parameters:
        deletionTimestamp - When the exclusion was deleted.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        VpcBlockPublicAccessExclusion.Builder tags​(Collection<Tag> tags)

        tag - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

        Parameters:
        tags - tag - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        VpcBlockPublicAccessExclusion.Builder tags​(Tag... tags)

        tag - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

        Parameters:
        tags - tag - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        VpcBlockPublicAccessExclusion.Builder tags​(Consumer<Tag.Builder>... tags)

        tag - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

        This is a convenience method that creates an instance of the Tag.Builder avoiding the need to create one manually via Tag.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #tags(List).

        Parameters:
        tags - a consumer that will call methods on Tag.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #tags(java.util.Collection)