Interface RunMicrovmRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<RunMicrovmRequest.Builder,,RunMicrovmRequest> LambdaMicrovmsRequest.Builder,SdkBuilder<RunMicrovmRequest.Builder,,RunMicrovmRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
RunMicrovmRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) A unique, case-sensitive identifier you provide to ensure the idempotency of the request.egressNetworkConnectors(String... egressNetworkConnectors) The list of egress network connectors to configure for the MicroVM.egressNetworkConnectors(Collection<String> egressNetworkConnectors) The list of egress network connectors to configure for the MicroVM.executionRoleArn(String executionRoleArn) The ARN of the IAM role to be assumed by the MicroVM during execution.default RunMicrovmRequest.BuilderidlePolicy(Consumer<IdlePolicy.Builder> idlePolicy) Configuration to control auto-suspend and auto-resume behavior.idlePolicy(IdlePolicy idlePolicy) Configuration to control auto-suspend and auto-resume behavior.imageIdentifier(String imageIdentifier) The identifier (ARN or ID) of the MicroVM image to run.imageVersion(String imageVersion) The version of the MicroVM image to run.ingressNetworkConnectors(String... ingressNetworkConnectors) The list of ingress network connectors to configure for the MicroVM.ingressNetworkConnectors(Collection<String> ingressNetworkConnectors) The list of ingress network connectors to configure for the MicroVM.default RunMicrovmRequest.Builderlogging(Consumer<Logging.Builder> logging) The logging configuration for this MicroVM instance.The logging configuration for this MicroVM instance.maximumDurationInSeconds(Integer maximumDurationInSeconds) The maximum duration in seconds that the MicroVM can exist before being terminated by the platform.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.runHookPayload(String runHookPayload) Per-MicroVM initialization data delivered as the request body of the /run lifecycle hook.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.services.lambdamicrovms.model.LambdaMicrovmsRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
ingressNetworkConnectors
The list of ingress network connectors to configure for the MicroVM.
- Parameters:
ingressNetworkConnectors- The list of ingress network connectors to configure for the MicroVM.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ingressNetworkConnectors
The list of ingress network connectors to configure for the MicroVM.
- Parameters:
ingressNetworkConnectors- The list of ingress network connectors to configure for the MicroVM.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
egressNetworkConnectors
The list of egress network connectors to configure for the MicroVM.
- Parameters:
egressNetworkConnectors- The list of egress network connectors to configure for the MicroVM.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
egressNetworkConnectors
The list of egress network connectors to configure for the MicroVM.
- Parameters:
egressNetworkConnectors- The list of egress network connectors to configure for the MicroVM.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageIdentifier
The identifier (ARN or ID) of the MicroVM image to run.
- Parameters:
imageIdentifier- The identifier (ARN or ID) of the MicroVM image to run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageVersion
The version of the MicroVM image to run.
- Parameters:
imageVersion- The version of the MicroVM image to run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
executionRoleArn
The ARN of the IAM role to be assumed by the MicroVM during execution.
- Parameters:
executionRoleArn- The ARN of the IAM role to be assumed by the MicroVM during execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
idlePolicy
Configuration to control auto-suspend and auto-resume behavior.
- Parameters:
idlePolicy- Configuration to control auto-suspend and auto-resume behavior.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
idlePolicy
Configuration to control auto-suspend and auto-resume behavior.
This is a convenience method that creates an instance of theIdlePolicy.Builderavoiding the need to create one manually viaIdlePolicy.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toidlePolicy(IdlePolicy).- Parameters:
idlePolicy- a consumer that will call methods onIdlePolicy.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
logging
The logging configuration for this MicroVM instance. Specify {"cloudWatch": {"logGroup": "..."}} to stream application logs to a custom CloudWatch log group, or {"disabled": {}} to turn off logging.
- Parameters:
logging- The logging configuration for this MicroVM instance. Specify {"cloudWatch": {"logGroup": "..."}} to stream application logs to a custom CloudWatch log group, or {"disabled": {}} to turn off logging.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logging
The logging configuration for this MicroVM instance. Specify {"cloudWatch": {"logGroup": "..."}} to stream application logs to a custom CloudWatch log group, or {"disabled": {}} to turn off logging.
This is a convenience method that creates an instance of theLogging.Builderavoiding the need to create one manually viaLogging.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tologging(Logging).- Parameters:
logging- a consumer that will call methods onLogging.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
runHookPayload
Per-MicroVM initialization data delivered as the request body of the /run lifecycle hook. Use to pass tenant-specific configuration such as session IDs or secret references. Maximum: 16,384 bytes.
- Parameters:
runHookPayload- Per-MicroVM initialization data delivered as the request body of the /run lifecycle hook. Use to pass tenant-specific configuration such as session IDs or secret references. Maximum: 16,384 bytes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maximumDurationInSeconds
The maximum duration in seconds that the MicroVM can exist before being terminated by the platform. Valid range: 1–28,800 (8 hours).
- Parameters:
maximumDurationInSeconds- The maximum duration in seconds that the MicroVM can exist before being terminated by the platform. Valid range: 1–28,800 (8 hours).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
A unique, case-sensitive identifier you provide to ensure the idempotency of the request.
- Parameters:
clientToken- A unique, case-sensitive identifier you provide to ensure the idempotency of the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
RunMicrovmRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
RunMicrovmRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-