Class CfnMaintenanceWindowTaskPropsMixin.MaintenanceWindowRunCommandParametersProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ssm.CfnMaintenanceWindowTaskPropsMixin.MaintenanceWindowRunCommandParametersProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMaintenanceWindowTaskPropsMixin.MaintenanceWindowRunCommandParametersProperty>
- Enclosing interface:
CfnMaintenanceWindowTaskPropsMixin.MaintenanceWindowRunCommandParametersProperty
@Stability(Stable)
public static final class CfnMaintenanceWindowTaskPropsMixin.MaintenanceWindowRunCommandParametersProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMaintenanceWindowTaskPropsMixin.MaintenanceWindowRunCommandParametersProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.cloudWatchOutputConfig(CfnMaintenanceWindowTaskPropsMixin.CloudWatchOutputConfigProperty cloudWatchOutputConfig) cloudWatchOutputConfig(IResolvable cloudWatchOutputConfig) documentHash(String documentHash) documentHashType(String documentHashType) documentVersion(String documentVersion) notificationConfig(CfnMaintenanceWindowTaskPropsMixin.NotificationConfigProperty notificationConfig) notificationConfig(IResolvable notificationConfig) outputS3BucketName(String outputS3BucketName) outputS3KeyPrefix(String outputS3KeyPrefix) parameters(Object parameters) serviceRoleArn(String serviceRoleArn) timeoutSeconds(Number timeoutSeconds)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cloudWatchOutputConfig
@Stability(Stable) public CfnMaintenanceWindowTaskPropsMixin.MaintenanceWindowRunCommandParametersProperty.Builder cloudWatchOutputConfig(IResolvable cloudWatchOutputConfig) Sets the value ofCfnMaintenanceWindowTaskPropsMixin.MaintenanceWindowRunCommandParametersProperty.getCloudWatchOutputConfig()- Parameters:
cloudWatchOutputConfig- Configuration options for sending command output to Amazon CloudWatch Logs.- Returns:
this
-
cloudWatchOutputConfig
@Stability(Stable) public CfnMaintenanceWindowTaskPropsMixin.MaintenanceWindowRunCommandParametersProperty.Builder cloudWatchOutputConfig(CfnMaintenanceWindowTaskPropsMixin.CloudWatchOutputConfigProperty cloudWatchOutputConfig) Sets the value ofCfnMaintenanceWindowTaskPropsMixin.MaintenanceWindowRunCommandParametersProperty.getCloudWatchOutputConfig()- Parameters:
cloudWatchOutputConfig- Configuration options for sending command output to Amazon CloudWatch Logs.- Returns:
this
-
comment
@Stability(Stable) public CfnMaintenanceWindowTaskPropsMixin.MaintenanceWindowRunCommandParametersProperty.Builder comment(String comment) Sets the value ofCfnMaintenanceWindowTaskPropsMixin.MaintenanceWindowRunCommandParametersProperty.getComment()- Parameters:
comment- Information about the command or commands to run.- Returns:
this
-
documentHash
@Stability(Stable) public CfnMaintenanceWindowTaskPropsMixin.MaintenanceWindowRunCommandParametersProperty.Builder documentHash(String documentHash) Sets the value ofCfnMaintenanceWindowTaskPropsMixin.MaintenanceWindowRunCommandParametersProperty.getDocumentHash()- Parameters:
documentHash- The SHA-256 or SHA-1 hash created by the system when the document was created. SHA-1 hashes have been deprecated.- Returns:
this
-
documentHashType
@Stability(Stable) public CfnMaintenanceWindowTaskPropsMixin.MaintenanceWindowRunCommandParametersProperty.Builder documentHashType(String documentHashType) Sets the value ofCfnMaintenanceWindowTaskPropsMixin.MaintenanceWindowRunCommandParametersProperty.getDocumentHashType()- Parameters:
documentHashType- The SHA-256 or SHA-1 hash type. SHA-1 hashes are deprecated.- Returns:
this
-
documentVersion
@Stability(Stable) public CfnMaintenanceWindowTaskPropsMixin.MaintenanceWindowRunCommandParametersProperty.Builder documentVersion(String documentVersion) Sets the value ofCfnMaintenanceWindowTaskPropsMixin.MaintenanceWindowRunCommandParametersProperty.getDocumentVersion()- Parameters:
documentVersion- The AWS Systems Manager document (SSM document) version to use in the request. You can specify$DEFAULT,$LATEST, or a specific version number. If you run commands by using the AWS CLI, then you must escape the first two options by using a backslash. If you specify a version number, then you don't need to use the backslash. For example:--document-version "\$DEFAULT"--document-version "\$LATEST"--document-version "3"- Returns:
this
-
notificationConfig
@Stability(Stable) public CfnMaintenanceWindowTaskPropsMixin.MaintenanceWindowRunCommandParametersProperty.Builder notificationConfig(IResolvable notificationConfig) Sets the value ofCfnMaintenanceWindowTaskPropsMixin.MaintenanceWindowRunCommandParametersProperty.getNotificationConfig()- Parameters:
notificationConfig- Configurations for sending notifications about command status changes on a per-managed node basis.- Returns:
this
-
notificationConfig
@Stability(Stable) public CfnMaintenanceWindowTaskPropsMixin.MaintenanceWindowRunCommandParametersProperty.Builder notificationConfig(CfnMaintenanceWindowTaskPropsMixin.NotificationConfigProperty notificationConfig) Sets the value ofCfnMaintenanceWindowTaskPropsMixin.MaintenanceWindowRunCommandParametersProperty.getNotificationConfig()- Parameters:
notificationConfig- Configurations for sending notifications about command status changes on a per-managed node basis.- Returns:
this
-
outputS3BucketName
@Stability(Stable) public CfnMaintenanceWindowTaskPropsMixin.MaintenanceWindowRunCommandParametersProperty.Builder outputS3BucketName(String outputS3BucketName) Sets the value ofCfnMaintenanceWindowTaskPropsMixin.MaintenanceWindowRunCommandParametersProperty.getOutputS3BucketName()- Parameters:
outputS3BucketName- The name of the Amazon Simple Storage Service (Amazon S3) bucket.- Returns:
this
-
outputS3KeyPrefix
@Stability(Stable) public CfnMaintenanceWindowTaskPropsMixin.MaintenanceWindowRunCommandParametersProperty.Builder outputS3KeyPrefix(String outputS3KeyPrefix) Sets the value ofCfnMaintenanceWindowTaskPropsMixin.MaintenanceWindowRunCommandParametersProperty.getOutputS3KeyPrefix()- Parameters:
outputS3KeyPrefix- The S3 bucket subfolder.- Returns:
this
-
parameters
@Stability(Stable) public CfnMaintenanceWindowTaskPropsMixin.MaintenanceWindowRunCommandParametersProperty.Builder parameters(Object parameters) Sets the value ofCfnMaintenanceWindowTaskPropsMixin.MaintenanceWindowRunCommandParametersProperty.getParameters()- Parameters:
parameters- The parameters for theRUN_COMMANDtask execution. The supported parameters are the same as those for theSendCommandAPI call. For more information, see SendCommand in the AWS Systems Manager API Reference .- Returns:
this
-
serviceRoleArn
@Stability(Stable) public CfnMaintenanceWindowTaskPropsMixin.MaintenanceWindowRunCommandParametersProperty.Builder serviceRoleArn(String serviceRoleArn) Sets the value ofCfnMaintenanceWindowTaskPropsMixin.MaintenanceWindowRunCommandParametersProperty.getServiceRoleArn()- Parameters:
serviceRoleArn- The Amazon Resource Name (ARN) of the IAM service role for AWS Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you runRegisterTaskWithMaintenanceWindow.However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the AWS Systems Manager User Guide .
- Returns:
this
-
timeoutSeconds
@Stability(Stable) public CfnMaintenanceWindowTaskPropsMixin.MaintenanceWindowRunCommandParametersProperty.Builder timeoutSeconds(Number timeoutSeconds) Sets the value ofCfnMaintenanceWindowTaskPropsMixin.MaintenanceWindowRunCommandParametersProperty.getTimeoutSeconds()- Parameters:
timeoutSeconds- If this time is reached and the command hasn't already started running, it doesn't run.- Returns:
this
-
build
@Stability(Stable) public CfnMaintenanceWindowTaskPropsMixin.MaintenanceWindowRunCommandParametersProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMaintenanceWindowTaskPropsMixin.MaintenanceWindowRunCommandParametersProperty>- Returns:
- a new instance of
CfnMaintenanceWindowTaskPropsMixin.MaintenanceWindowRunCommandParametersProperty - Throws:
NullPointerException- if any required attribute was not provided
-