AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::ServiceCatalog::Types::CreateServiceActionInput

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing CreateServiceActionInput as input to an Aws::Client method, you can use a vanilla Hash:

{
  name: "ServiceActionName", # required
  definition_type: "SSM_AUTOMATION", # required, accepts SSM_AUTOMATION
  definition: { # required
    "Name" => "ServiceActionDefinitionValue",
  },
  description: "ServiceActionDescription",
  accept_language: "AcceptLanguage",
  idempotency_token: "IdempotencyToken", # required
}

Instance Attribute Summary collapse

Instance Attribute Details

#accept_languageString

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

Returns:

  • (String)

    The language code.

#definitionHash<String,String>

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

Name

The name of the AWS 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 AWS 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:

  • (Hash<String,String>)

    The self-service action definition.

#definition_typeString

The service action definition type. For example, SSM_AUTOMATION.

Possible values:

  • SSM_AUTOMATION

Returns:

  • (String)

    The service action definition type.

#descriptionString

The self-service action description.

Returns:

  • (String)

    The self-service action description.

#idempotency_tokenString

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:

  • (String)

    A unique identifier that you provide to ensure idempotency.

#nameString

The self-service action name.

Returns:

  • (String)

    The self-service action name.