Class VpcBlockPublicAccessOptions

    • Method Detail

      • awsAccountId

        public final String awsAccountId()

        An Amazon Web Services account ID.

        Returns:
        An Amazon Web Services account ID.
      • awsRegion

        public final String awsRegion()

        An Amazon Web Services Region.

        Returns:
        An Amazon Web Services Region.
      • internetGatewayBlockMode

        public final InternetGatewayBlockMode internetGatewayBlockMode()

        The current mode of VPC BPA.

        • off: VPC BPA is not enabled and traffic is allowed to and from internet gateways and egress-only internet gateways in this Region.

        • block-bidirectional: Block all traffic to and from internet gateways and egress-only internet gateways in this Region (except for excluded VPCs and subnets).

        • block-ingress: Block all internet traffic to the VPCs in this Region (except for VPCs or subnets which are excluded). Only traffic to and from NAT gateways and egress-only internet gateways is allowed because these gateways only allow outbound connections to be established.

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

        Returns:
        The current mode of VPC BPA.

        • off: VPC BPA is not enabled and traffic is allowed to and from internet gateways and egress-only internet gateways in this Region.

        • block-bidirectional: Block all traffic to and from internet gateways and egress-only internet gateways in this Region (except for excluded VPCs and subnets).

        • block-ingress: Block all internet traffic to the VPCs in this Region (except for VPCs or subnets which are excluded). Only traffic to and from NAT gateways and egress-only internet gateways is allowed because these gateways only allow outbound connections to be established.

        See Also:
        InternetGatewayBlockMode
      • internetGatewayBlockModeAsString

        public final String internetGatewayBlockModeAsString()

        The current mode of VPC BPA.

        • off: VPC BPA is not enabled and traffic is allowed to and from internet gateways and egress-only internet gateways in this Region.

        • block-bidirectional: Block all traffic to and from internet gateways and egress-only internet gateways in this Region (except for excluded VPCs and subnets).

        • block-ingress: Block all internet traffic to the VPCs in this Region (except for VPCs or subnets which are excluded). Only traffic to and from NAT gateways and egress-only internet gateways is allowed because these gateways only allow outbound connections to be established.

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

        Returns:
        The current mode of VPC BPA.

        • off: VPC BPA is not enabled and traffic is allowed to and from internet gateways and egress-only internet gateways in this Region.

        • block-bidirectional: Block all traffic to and from internet gateways and egress-only internet gateways in this Region (except for excluded VPCs and subnets).

        • block-ingress: Block all internet traffic to the VPCs in this Region (except for VPCs or subnets which are excluded). Only traffic to and from NAT gateways and egress-only internet gateways is allowed because these gateways only allow outbound connections to be established.

        See Also:
        InternetGatewayBlockMode
      • reason

        public final String reason()

        The reason for the current state.

        Returns:
        The reason for the current state.
      • lastUpdateTimestamp

        public final Instant lastUpdateTimestamp()

        The last time the VPC BPA mode was updated.

        Returns:
        The last time the VPC BPA mode was updated.
      • managedBy

        public final ManagedBy managedBy()

        The entity that manages the state of VPC BPA. Possible values include:

        • account - The state is managed by the account.

        • declarative-policy - The state is managed by a declarative policy and can't be modified by the account.

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

        Returns:
        The entity that manages the state of VPC BPA. Possible values include:

        • account - The state is managed by the account.

        • declarative-policy - The state is managed by a declarative policy and can't be modified by the account.

        See Also:
        ManagedBy
      • managedByAsString

        public final String managedByAsString()

        The entity that manages the state of VPC BPA. Possible values include:

        • account - The state is managed by the account.

        • declarative-policy - The state is managed by a declarative policy and can't be modified by the account.

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

        Returns:
        The entity that manages the state of VPC BPA. Possible values include:

        • account - The state is managed by the account.

        • declarative-policy - The state is managed by a declarative policy and can't be modified by the account.

        See Also:
        ManagedBy
      • 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)