Class ServiceActionDefinition


  • public final class ServiceActionDefinition
    extends java.lang.Object
    • Method Detail

      • assumeRole

        public java.util.Optional<java.lang.String> assumeRole()
        Returns:
        ARN of the role that performs the self-service actions on your behalf. For example, `arn:aws:iam::12345678910:role/ActionRole`. To reuse the provisioned product launch role, set to `LAUNCH_ROLE`.
      • name

        public java.lang.String name()
        Returns:
        Name of the SSM document. For example, `AWS-RestartEC2Instance`. If you are using a shared SSM document, you must provide the ARN instead of the name.
      • parameters

        public java.util.Optional<java.lang.String> parameters()
        Returns:
        List of parameters in JSON format. For example: `[{\"Name\":\"InstanceId\",\"Type\":\"TARGET\"}]` or `[{\"Name\":\"InstanceId\",\"Type\":\"TEXT_VALUE\"}]`.
      • type

        public java.util.Optional<java.lang.String> type()
        Returns:
        Service action definition type. Valid value is `SSM_AUTOMATION`. Default is `SSM_AUTOMATION`.
      • version

        public java.lang.String version()
        Returns:
        SSM document version. For example, `1`.