Interface StartSessionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<StartSessionRequest.Builder,,StartSessionRequest> SdkBuilder<StartSessionRequest.Builder,,StartSessionRequest> SdkPojo,SdkRequest.Builder,SsmRequest.Builder
- Enclosing class:
- StartSessionRequest
-
Method Summary
Modifier and TypeMethodDescriptiondocumentName(String documentName) The name of the SSM document you want to use to define the type of session, input parameters, or preferences for the session.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) parameters(Map<String, ? extends Collection<String>> parameters) The values you want to specify for the parameters defined in the Session document.The reason for connecting to the instance.The managed node to connect to for the session.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.services.ssm.model.SsmRequest.Builder
build
-
Method Details
-
target
The managed node to connect to for the session.
- Parameters:
target- The managed node to connect to for the session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentName
The name of the SSM document you want to use to define the type of session, input parameters, or preferences for the session. For example,
SSM-SessionManagerRunShell. You can call the GetDocument API to verify the document exists before attempting to start a session. If no document name is provided, a shell to the managed node is launched by default. For more information, see Start a session in the Amazon Web Services Systems Manager User Guide.- Parameters:
documentName- The name of the SSM document you want to use to define the type of session, input parameters, or preferences for the session. For example,SSM-SessionManagerRunShell. You can call the GetDocument API to verify the document exists before attempting to start a session. If no document name is provided, a shell to the managed node is launched by default. For more information, see Start a session in the Amazon Web Services Systems Manager User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reason
The reason for connecting to the instance. This value is included in the details for the Amazon CloudWatch Events event created when you start the session.
- Parameters:
reason- The reason for connecting to the instance. This value is included in the details for the Amazon CloudWatch Events event created when you start the session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parameters
The values you want to specify for the parameters defined in the Session document. For more information about these parameters, see Create a Session Manager preferences document in the Amazon Web Services Systems Manager User Guide.
- Parameters:
parameters- The values you want to specify for the parameters defined in the Session document. For more information about these parameters, see Create a Session Manager preferences document in the Amazon Web Services Systems Manager User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
StartSessionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) - Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
StartSessionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) - Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-