Interface CreateServiceActionRequest.Builder

    • Method Detail

      • name

        CreateServiceActionRequest.Builder name​(String name)

        The self-service action name.

        Parameters:
        name - The self-service action name.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • definitionWithStrings

        CreateServiceActionRequest.Builder definitionWithStrings​(Map<String,​String> definition)

        The self-service action definition. Can be one of the following:

        Name

        The name of the Amazon Web Services Systems Manager document (SSM document). For example, AWS-RestartEC2Instance.

        If you are using a shared SSM document, you must provide the ARN instead of the name.

        Version

        The Amazon Web Services Systems Manager automation document version. For example, "Version": "1"

        AssumeRole

        The Amazon Resource Name (ARN) of the role that performs the self-service actions on your behalf. For example, "AssumeRole": "arn:aws:iam::12345678910:role/ActionRole".

        To reuse the provisioned product launch role, set to "AssumeRole": "LAUNCH_ROLE".

        Parameters

        The list of parameters in JSON format.

        For example: [{\"Name\":\"InstanceId\",\"Type\":\"TARGET\"}] or [{\"Name\":\"InstanceId\",\"Type\":\"TEXT_VALUE\"}].

        Parameters:
        definition - The self-service action definition. Can be one of the following:

        Name

        The name of the Amazon Web Services Systems Manager document (SSM document). For example, AWS-RestartEC2Instance.

        If you are using a shared SSM document, you must provide the ARN instead of the name.

        Version

        The Amazon Web Services Systems Manager automation document version. For example, "Version": "1"

        AssumeRole

        The Amazon Resource Name (ARN) of the role that performs the self-service actions on your behalf. For example, "AssumeRole": "arn:aws:iam::12345678910:role/ActionRole".

        To reuse the provisioned product launch role, set to "AssumeRole": "LAUNCH_ROLE".

        Parameters

        The list of parameters in JSON format.

        For example: [{\"Name\":\"InstanceId\",\"Type\":\"TARGET\"}] or [{\"Name\":\"InstanceId\",\"Type\":\"TEXT_VALUE\"}].

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • definition

        CreateServiceActionRequest.Builder definition​(Map<ServiceActionDefinitionKey,​String> definition)

        The self-service action definition. Can be one of the following:

        Name

        The name of the Amazon Web Services Systems Manager document (SSM document). For example, AWS-RestartEC2Instance.

        If you are using a shared SSM document, you must provide the ARN instead of the name.

        Version

        The Amazon Web Services Systems Manager automation document version. For example, "Version": "1"

        AssumeRole

        The Amazon Resource Name (ARN) of the role that performs the self-service actions on your behalf. For example, "AssumeRole": "arn:aws:iam::12345678910:role/ActionRole".

        To reuse the provisioned product launch role, set to "AssumeRole": "LAUNCH_ROLE".

        Parameters

        The list of parameters in JSON format.

        For example: [{\"Name\":\"InstanceId\",\"Type\":\"TARGET\"}] or [{\"Name\":\"InstanceId\",\"Type\":\"TEXT_VALUE\"}].

        Parameters:
        definition - The self-service action definition. Can be one of the following:

        Name

        The name of the Amazon Web Services Systems Manager document (SSM document). For example, AWS-RestartEC2Instance.

        If you are using a shared SSM document, you must provide the ARN instead of the name.

        Version

        The Amazon Web Services Systems Manager automation document version. For example, "Version": "1"

        AssumeRole

        The Amazon Resource Name (ARN) of the role that performs the self-service actions on your behalf. For example, "AssumeRole": "arn:aws:iam::12345678910:role/ActionRole".

        To reuse the provisioned product launch role, set to "AssumeRole": "LAUNCH_ROLE".

        Parameters

        The list of parameters in JSON format.

        For example: [{\"Name\":\"InstanceId\",\"Type\":\"TARGET\"}] or [{\"Name\":\"InstanceId\",\"Type\":\"TEXT_VALUE\"}].

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • description

        CreateServiceActionRequest.Builder description​(String description)

        The self-service action description.

        Parameters:
        description - The self-service action description.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • acceptLanguage

        CreateServiceActionRequest.Builder acceptLanguage​(String acceptLanguage)

        The language code.

        • jp - Japanese

        • zh - Chinese

        Parameters:
        acceptLanguage - The language code.

        • jp - Japanese

        • zh - Chinese

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • idempotencyToken

        CreateServiceActionRequest.Builder idempotencyToken​(String idempotencyToken)

        A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the idempotency token, the same response is returned for each repeated request.

        Parameters:
        idempotencyToken - A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the idempotency token, the same response is returned for each repeated request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.