Package com.pulumi.aws.ecs.inputs
Class ServiceDeploymentConfigurationLifecycleHookArgs.Builder
- java.lang.Object
-
- com.pulumi.aws.ecs.inputs.ServiceDeploymentConfigurationLifecycleHookArgs.Builder
-
- Enclosing class:
- ServiceDeploymentConfigurationLifecycleHookArgs
public static final class ServiceDeploymentConfigurationLifecycleHookArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(ServiceDeploymentConfigurationLifecycleHookArgs defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(ServiceDeploymentConfigurationLifecycleHookArgs defaults)
-
-
Method Detail
-
hookDetails
public ServiceDeploymentConfigurationLifecycleHookArgs.Builder hookDetails(@Nullable com.pulumi.core.Output<java.lang.String> hookDetails)
- Parameters:
hookDetails- Custom parameters that Amazon ECS will pass to the hook target invocations (such as a Lambda function).- Returns:
- builder
-
hookDetails
public ServiceDeploymentConfigurationLifecycleHookArgs.Builder hookDetails(java.lang.String hookDetails)
- Parameters:
hookDetails- Custom parameters that Amazon ECS will pass to the hook target invocations (such as a Lambda function).- Returns:
- builder
-
hookTargetArn
public ServiceDeploymentConfigurationLifecycleHookArgs.Builder hookTargetArn(@Nullable com.pulumi.core.Output<java.lang.String> hookTargetArn)
- Parameters:
hookTargetArn- ARN of the Lambda function to invoke for the lifecycle hook. Required when `targetType` is `AWS_LAMBDA`. Not used when `targetType` is `PAUSE`.- Returns:
- builder
-
hookTargetArn
public ServiceDeploymentConfigurationLifecycleHookArgs.Builder hookTargetArn(java.lang.String hookTargetArn)
- Parameters:
hookTargetArn- ARN of the Lambda function to invoke for the lifecycle hook. Required when `targetType` is `AWS_LAMBDA`. Not used when `targetType` is `PAUSE`.- Returns:
- builder
-
lifecycleStages
public ServiceDeploymentConfigurationLifecycleHookArgs.Builder lifecycleStages(com.pulumi.core.Output<java.util.List<java.lang.String>> lifecycleStages)
- Parameters:
lifecycleStages- Stages during the deployment when the hook should be invoked. Valid values: `RECONCILE_SERVICE`, `PRE_SCALE_UP`, `POST_SCALE_UP`, `TEST_TRAFFIC_SHIFT`, `POST_TEST_TRAFFIC_SHIFT`, `PRODUCTION_TRAFFIC_SHIFT`, `POST_PRODUCTION_TRAFFIC_SHIFT`.- Returns:
- builder
-
lifecycleStages
public ServiceDeploymentConfigurationLifecycleHookArgs.Builder lifecycleStages(java.util.List<java.lang.String> lifecycleStages)
- Parameters:
lifecycleStages- Stages during the deployment when the hook should be invoked. Valid values: `RECONCILE_SERVICE`, `PRE_SCALE_UP`, `POST_SCALE_UP`, `TEST_TRAFFIC_SHIFT`, `POST_TEST_TRAFFIC_SHIFT`, `PRODUCTION_TRAFFIC_SHIFT`, `POST_PRODUCTION_TRAFFIC_SHIFT`.- Returns:
- builder
-
lifecycleStages
public ServiceDeploymentConfigurationLifecycleHookArgs.Builder lifecycleStages(java.lang.String... lifecycleStages)
- Parameters:
lifecycleStages- Stages during the deployment when the hook should be invoked. Valid values: `RECONCILE_SERVICE`, `PRE_SCALE_UP`, `POST_SCALE_UP`, `TEST_TRAFFIC_SHIFT`, `POST_TEST_TRAFFIC_SHIFT`, `PRODUCTION_TRAFFIC_SHIFT`, `POST_PRODUCTION_TRAFFIC_SHIFT`.- Returns:
- builder
-
roleArn
public ServiceDeploymentConfigurationLifecycleHookArgs.Builder roleArn(@Nullable com.pulumi.core.Output<java.lang.String> roleArn)
- Parameters:
roleArn- ARN of the IAM role that grants the service permission to invoke the Lambda function. Required when `targetType` is `AWS_LAMBDA`. Not used when `targetType` is `PAUSE`.- Returns:
- builder
-
roleArn
public ServiceDeploymentConfigurationLifecycleHookArgs.Builder roleArn(java.lang.String roleArn)
- Parameters:
roleArn- ARN of the IAM role that grants the service permission to invoke the Lambda function. Required when `targetType` is `AWS_LAMBDA`. Not used when `targetType` is `PAUSE`.- Returns:
- builder
-
targetType
public ServiceDeploymentConfigurationLifecycleHookArgs.Builder targetType(@Nullable com.pulumi.core.Output<java.lang.String> targetType)
- Parameters:
targetType- Type of hook target. Valid values: `AWS_LAMBDA`, `PAUSE`. Default: `AWS_LAMBDA`. `PAUSE` hooks cannot use the `TEST_TRAFFIC_SHIFT` or `PRODUCTION_TRAFFIC_SHIFT` lifecycle stages.- Returns:
- builder
-
targetType
public ServiceDeploymentConfigurationLifecycleHookArgs.Builder targetType(java.lang.String targetType)
- Parameters:
targetType- Type of hook target. Valid values: `AWS_LAMBDA`, `PAUSE`. Default: `AWS_LAMBDA`. `PAUSE` hooks cannot use the `TEST_TRAFFIC_SHIFT` or `PRODUCTION_TRAFFIC_SHIFT` lifecycle stages.- Returns:
- builder
-
timeoutConfiguration
public ServiceDeploymentConfigurationLifecycleHookArgs.Builder timeoutConfiguration(@Nullable com.pulumi.core.Output<ServiceDeploymentConfigurationLifecycleHookTimeoutConfigurationArgs> timeoutConfiguration)
- Parameters:
timeoutConfiguration- Configuration block defining the timeout behavior for a `PAUSE` hook. Only valid when `targetType` is `PAUSE`. See below.- Returns:
- builder
-
timeoutConfiguration
public ServiceDeploymentConfigurationLifecycleHookArgs.Builder timeoutConfiguration(ServiceDeploymentConfigurationLifecycleHookTimeoutConfigurationArgs timeoutConfiguration)
- Parameters:
timeoutConfiguration- Configuration block defining the timeout behavior for a `PAUSE` hook. Only valid when `targetType` is `PAUSE`. See below.- Returns:
- builder
-
build
public ServiceDeploymentConfigurationLifecycleHookArgs build()
-
-