Interface InstanceMetadataDefaultsResponse.Builder

    • Method Detail

      • httpTokens

        InstanceMetadataDefaultsResponse.Builder httpTokens​(String httpTokens)

        Indicates whether IMDSv2 is required.

        • optional – IMDSv2 is optional, which means that you can use either IMDSv2 or IMDSv1.

        • required – IMDSv2 is required, which means that IMDSv1 is disabled, and you must use IMDSv2.

        Parameters:
        httpTokens - Indicates whether IMDSv2 is required.

        • optional – IMDSv2 is optional, which means that you can use either IMDSv2 or IMDSv1.

        • required – IMDSv2 is required, which means that IMDSv1 is disabled, and you must use IMDSv2.

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

        InstanceMetadataDefaultsResponse.Builder httpTokens​(HttpTokensState httpTokens)

        Indicates whether IMDSv2 is required.

        • optional – IMDSv2 is optional, which means that you can use either IMDSv2 or IMDSv1.

        • required – IMDSv2 is required, which means that IMDSv1 is disabled, and you must use IMDSv2.

        Parameters:
        httpTokens - Indicates whether IMDSv2 is required.

        • optional – IMDSv2 is optional, which means that you can use either IMDSv2 or IMDSv1.

        • required – IMDSv2 is required, which means that IMDSv1 is disabled, and you must use IMDSv2.

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

        InstanceMetadataDefaultsResponse.Builder httpPutResponseHopLimit​(Integer httpPutResponseHopLimit)

        The maximum number of hops that the metadata token can travel.

        Parameters:
        httpPutResponseHopLimit - The maximum number of hops that the metadata token can travel.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • httpEndpoint

        InstanceMetadataDefaultsResponse.Builder httpEndpoint​(String httpEndpoint)

        Indicates whether the IMDS endpoint for an instance is enabled or disabled. When disabled, the instance metadata can't be accessed.

        Parameters:
        httpEndpoint - Indicates whether the IMDS endpoint for an instance is enabled or disabled. When disabled, the instance metadata can't be accessed.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        InstanceMetadataEndpointState, InstanceMetadataEndpointState
      • managedBy

        InstanceMetadataDefaultsResponse.Builder managedBy​(String managedBy)

        The entity that manages the IMDS default settings. Possible values include:

        • account - The IMDS default settings are managed by the account.

        • declarative-policy - The IMDS default settings are managed by a declarative policy and can't be modified by the account.

        Parameters:
        managedBy - The entity that manages the IMDS default settings. Possible values include:

        • account - The IMDS default settings are managed by the account.

        • declarative-policy - The IMDS default settings are managed by a declarative policy and can't be modified by the account.

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

        InstanceMetadataDefaultsResponse.Builder managedBy​(ManagedBy managedBy)

        The entity that manages the IMDS default settings. Possible values include:

        • account - The IMDS default settings are managed by the account.

        • declarative-policy - The IMDS default settings are managed by a declarative policy and can't be modified by the account.

        Parameters:
        managedBy - The entity that manages the IMDS default settings. Possible values include:

        • account - The IMDS default settings are managed by the account.

        • declarative-policy - The IMDS default settings are managed by a declarative policy and can't be modified by the account.

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

        InstanceMetadataDefaultsResponse.Builder managedExceptionMessage​(String managedExceptionMessage)

        The customized exception message that is specified in the declarative policy.

        Parameters:
        managedExceptionMessage - The customized exception message that is specified in the declarative policy.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • httpTokensEnforced

        InstanceMetadataDefaultsResponse.Builder httpTokensEnforced​(String httpTokensEnforced)

        Indicates whether to enforce the requirement of IMDSv2 on an instance at the time of launch. When enforcement is enabled, the instance can't launch unless IMDSv2 (HttpTokens) is set to required .

        Parameters:
        httpTokensEnforced - Indicates whether to enforce the requirement of IMDSv2 on an instance at the time of launch. When enforcement is enabled, the instance can't launch unless IMDSv2 (HttpTokens) is set to required.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        HttpTokensEnforcedState, HttpTokensEnforcedState
      • httpTokensEnforced

        InstanceMetadataDefaultsResponse.Builder httpTokensEnforced​(HttpTokensEnforcedState httpTokensEnforced)

        Indicates whether to enforce the requirement of IMDSv2 on an instance at the time of launch. When enforcement is enabled, the instance can't launch unless IMDSv2 (HttpTokens) is set to required .

        Parameters:
        httpTokensEnforced - Indicates whether to enforce the requirement of IMDSv2 on an instance at the time of launch. When enforcement is enabled, the instance can't launch unless IMDSv2 (HttpTokens) is set to required.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        HttpTokensEnforcedState, HttpTokensEnforcedState