1. Packages
  2. AWS Native
  3. API Docs
  4. applicationautoscaling
  5. ScalableTarget

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.103.0 published on Monday, Apr 22, 2024 by Pulumi

aws-native.applicationautoscaling.ScalableTarget

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.103.0 published on Monday, Apr 22, 2024 by Pulumi

    Resource Type definition for AWS::ApplicationAutoScaling::ScalableTarget

    Create ScalableTarget Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ScalableTarget(name: string, args: ScalableTargetArgs, opts?: CustomResourceOptions);
    @overload
    def ScalableTarget(resource_name: str,
                       args: ScalableTargetArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def ScalableTarget(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       max_capacity: Optional[int] = None,
                       min_capacity: Optional[int] = None,
                       resource_id: Optional[str] = None,
                       scalable_dimension: Optional[str] = None,
                       service_namespace: Optional[str] = None,
                       role_arn: Optional[str] = None,
                       scheduled_actions: Optional[Sequence[ScalableTargetScheduledActionArgs]] = None,
                       suspended_state: Optional[ScalableTargetSuspendedStateArgs] = None)
    func NewScalableTarget(ctx *Context, name string, args ScalableTargetArgs, opts ...ResourceOption) (*ScalableTarget, error)
    public ScalableTarget(string name, ScalableTargetArgs args, CustomResourceOptions? opts = null)
    public ScalableTarget(String name, ScalableTargetArgs args)
    public ScalableTarget(String name, ScalableTargetArgs args, CustomResourceOptions options)
    
    type: aws-native:applicationautoscaling:ScalableTarget
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ScalableTargetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ScalableTargetArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ScalableTargetArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ScalableTargetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ScalableTargetArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    const scalableTargetResource = new aws_native.applicationautoscaling.ScalableTarget("scalableTargetResource", {
        maxCapacity: 0,
        minCapacity: 0,
        resourceId: "string",
        scalableDimension: "string",
        serviceNamespace: "string",
        roleArn: "string",
        scheduledActions: [{
            schedule: "string",
            scheduledActionName: "string",
            endTime: "string",
            scalableTargetAction: {
                maxCapacity: 0,
                minCapacity: 0,
            },
            startTime: "string",
            timezone: "string",
        }],
        suspendedState: {
            dynamicScalingInSuspended: false,
            dynamicScalingOutSuspended: false,
            scheduledScalingSuspended: false,
        },
    });
    
    Coming soon!
    

    ScalableTarget Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ScalableTarget resource accepts the following input properties:

    MaxCapacity int
    The maximum value that you plan to scale in to. When a scaling policy is in effect, Application Auto Scaling can scale in (contract) as needed to the minimum capacity limit in response to changing demand
    MinCapacity int
    The minimum value that you plan to scale in to. When a scaling policy is in effect, Application Auto Scaling can scale in (contract) as needed to the minimum capacity limit in response to changing demand
    ResourceId string
    The identifier of the resource associated with the scalable target
    ScalableDimension string
    The scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property
    ServiceNamespace string
    The namespace of the AWS service that provides the resource, or a custom-resource
    RoleArn string
    Specify the Amazon Resource Name (ARN) of an Identity and Access Management (IAM) role that allows Application Auto Scaling to modify the scalable target on your behalf.
    ScheduledActions List<Pulumi.AwsNative.ApplicationAutoScaling.Inputs.ScalableTargetScheduledAction>
    The scheduled actions for the scalable target. Duplicates aren't allowed.
    SuspendedState Pulumi.AwsNative.ApplicationAutoScaling.Inputs.ScalableTargetSuspendedState
    An embedded object that contains attributes and attribute values that are used to suspend and resume automatic scaling. Setting the value of an attribute to true suspends the specified scaling activities. Setting it to false (default) resumes the specified scaling activities.
    MaxCapacity int
    The maximum value that you plan to scale in to. When a scaling policy is in effect, Application Auto Scaling can scale in (contract) as needed to the minimum capacity limit in response to changing demand
    MinCapacity int
    The minimum value that you plan to scale in to. When a scaling policy is in effect, Application Auto Scaling can scale in (contract) as needed to the minimum capacity limit in response to changing demand
    ResourceId string
    The identifier of the resource associated with the scalable target
    ScalableDimension string
    The scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property
    ServiceNamespace string
    The namespace of the AWS service that provides the resource, or a custom-resource
    RoleArn string
    Specify the Amazon Resource Name (ARN) of an Identity and Access Management (IAM) role that allows Application Auto Scaling to modify the scalable target on your behalf.
    ScheduledActions []ScalableTargetScheduledActionArgs
    The scheduled actions for the scalable target. Duplicates aren't allowed.
    SuspendedState ScalableTargetSuspendedStateArgs
    An embedded object that contains attributes and attribute values that are used to suspend and resume automatic scaling. Setting the value of an attribute to true suspends the specified scaling activities. Setting it to false (default) resumes the specified scaling activities.
    maxCapacity Integer
    The maximum value that you plan to scale in to. When a scaling policy is in effect, Application Auto Scaling can scale in (contract) as needed to the minimum capacity limit in response to changing demand
    minCapacity Integer
    The minimum value that you plan to scale in to. When a scaling policy is in effect, Application Auto Scaling can scale in (contract) as needed to the minimum capacity limit in response to changing demand
    resourceId String
    The identifier of the resource associated with the scalable target
    scalableDimension String
    The scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property
    serviceNamespace String
    The namespace of the AWS service that provides the resource, or a custom-resource
    roleArn String
    Specify the Amazon Resource Name (ARN) of an Identity and Access Management (IAM) role that allows Application Auto Scaling to modify the scalable target on your behalf.
    scheduledActions List<ScalableTargetScheduledAction>
    The scheduled actions for the scalable target. Duplicates aren't allowed.
    suspendedState ScalableTargetSuspendedState
    An embedded object that contains attributes and attribute values that are used to suspend and resume automatic scaling. Setting the value of an attribute to true suspends the specified scaling activities. Setting it to false (default) resumes the specified scaling activities.
    maxCapacity number
    The maximum value that you plan to scale in to. When a scaling policy is in effect, Application Auto Scaling can scale in (contract) as needed to the minimum capacity limit in response to changing demand
    minCapacity number
    The minimum value that you plan to scale in to. When a scaling policy is in effect, Application Auto Scaling can scale in (contract) as needed to the minimum capacity limit in response to changing demand
    resourceId string
    The identifier of the resource associated with the scalable target
    scalableDimension string
    The scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property
    serviceNamespace string
    The namespace of the AWS service that provides the resource, or a custom-resource
    roleArn string
    Specify the Amazon Resource Name (ARN) of an Identity and Access Management (IAM) role that allows Application Auto Scaling to modify the scalable target on your behalf.
    scheduledActions ScalableTargetScheduledAction[]
    The scheduled actions for the scalable target. Duplicates aren't allowed.
    suspendedState ScalableTargetSuspendedState
    An embedded object that contains attributes and attribute values that are used to suspend and resume automatic scaling. Setting the value of an attribute to true suspends the specified scaling activities. Setting it to false (default) resumes the specified scaling activities.
    max_capacity int
    The maximum value that you plan to scale in to. When a scaling policy is in effect, Application Auto Scaling can scale in (contract) as needed to the minimum capacity limit in response to changing demand
    min_capacity int
    The minimum value that you plan to scale in to. When a scaling policy is in effect, Application Auto Scaling can scale in (contract) as needed to the minimum capacity limit in response to changing demand
    resource_id str
    The identifier of the resource associated with the scalable target
    scalable_dimension str
    The scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property
    service_namespace str
    The namespace of the AWS service that provides the resource, or a custom-resource
    role_arn str
    Specify the Amazon Resource Name (ARN) of an Identity and Access Management (IAM) role that allows Application Auto Scaling to modify the scalable target on your behalf.
    scheduled_actions Sequence[ScalableTargetScheduledActionArgs]
    The scheduled actions for the scalable target. Duplicates aren't allowed.
    suspended_state ScalableTargetSuspendedStateArgs
    An embedded object that contains attributes and attribute values that are used to suspend and resume automatic scaling. Setting the value of an attribute to true suspends the specified scaling activities. Setting it to false (default) resumes the specified scaling activities.
    maxCapacity Number
    The maximum value that you plan to scale in to. When a scaling policy is in effect, Application Auto Scaling can scale in (contract) as needed to the minimum capacity limit in response to changing demand
    minCapacity Number
    The minimum value that you plan to scale in to. When a scaling policy is in effect, Application Auto Scaling can scale in (contract) as needed to the minimum capacity limit in response to changing demand
    resourceId String
    The identifier of the resource associated with the scalable target
    scalableDimension String
    The scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property
    serviceNamespace String
    The namespace of the AWS service that provides the resource, or a custom-resource
    roleArn String
    Specify the Amazon Resource Name (ARN) of an Identity and Access Management (IAM) role that allows Application Auto Scaling to modify the scalable target on your behalf.
    scheduledActions List<Property Map>
    The scheduled actions for the scalable target. Duplicates aren't allowed.
    suspendedState Property Map
    An embedded object that contains attributes and attribute values that are used to suspend and resume automatic scaling. Setting the value of an attribute to true suspends the specified scaling activities. Setting it to false (default) resumes the specified scaling activities.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ScalableTarget resource produces the following output properties:

    AwsId string
    This value can be returned by using the Ref function. Ref returns the Cloudformation generated ID of the resource in format - ResourceId|ScalableDimension|ServiceNamespace
    Id string
    The provider-assigned unique ID for this managed resource.
    AwsId string
    This value can be returned by using the Ref function. Ref returns the Cloudformation generated ID of the resource in format - ResourceId|ScalableDimension|ServiceNamespace
    Id string
    The provider-assigned unique ID for this managed resource.
    awsId String
    This value can be returned by using the Ref function. Ref returns the Cloudformation generated ID of the resource in format - ResourceId|ScalableDimension|ServiceNamespace
    id String
    The provider-assigned unique ID for this managed resource.
    awsId string
    This value can be returned by using the Ref function. Ref returns the Cloudformation generated ID of the resource in format - ResourceId|ScalableDimension|ServiceNamespace
    id string
    The provider-assigned unique ID for this managed resource.
    aws_id str
    This value can be returned by using the Ref function. Ref returns the Cloudformation generated ID of the resource in format - ResourceId|ScalableDimension|ServiceNamespace
    id str
    The provider-assigned unique ID for this managed resource.
    awsId String
    This value can be returned by using the Ref function. Ref returns the Cloudformation generated ID of the resource in format - ResourceId|ScalableDimension|ServiceNamespace
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    ScalableTargetAction, ScalableTargetActionArgs

    maxCapacity Integer
    minCapacity Integer

    ScalableTargetScheduledAction, ScalableTargetScheduledActionArgs

    ScalableTargetSuspendedState, ScalableTargetSuspendedStateArgs

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.103.0 published on Monday, Apr 22, 2024 by Pulumi