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.getScalableTarget
Explore with Pulumi AI
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
Using getScalableTarget
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getScalableTarget(args: GetScalableTargetArgs, opts?: InvokeOptions): Promise<GetScalableTargetResult>
function getScalableTargetOutput(args: GetScalableTargetOutputArgs, opts?: InvokeOptions): Output<GetScalableTargetResult>
def get_scalable_target(resource_id: Optional[str] = None,
scalable_dimension: Optional[str] = None,
service_namespace: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetScalableTargetResult
def get_scalable_target_output(resource_id: Optional[pulumi.Input[str]] = None,
scalable_dimension: Optional[pulumi.Input[str]] = None,
service_namespace: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetScalableTargetResult]
func LookupScalableTarget(ctx *Context, args *LookupScalableTargetArgs, opts ...InvokeOption) (*LookupScalableTargetResult, error)
func LookupScalableTargetOutput(ctx *Context, args *LookupScalableTargetOutputArgs, opts ...InvokeOption) LookupScalableTargetResultOutput
> Note: This function is named LookupScalableTarget
in the Go SDK.
public static class GetScalableTarget
{
public static Task<GetScalableTargetResult> InvokeAsync(GetScalableTargetArgs args, InvokeOptions? opts = null)
public static Output<GetScalableTargetResult> Invoke(GetScalableTargetInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetScalableTargetResult> getScalableTarget(GetScalableTargetArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:applicationautoscaling:getScalableTarget
arguments:
# arguments dictionary
The following arguments are supported:
- Resource
Id string - The identifier of the resource associated with the scalable target
- Scalable
Dimension string - The scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property
- Service
Namespace string - The namespace of the AWS service that provides the resource, or a custom-resource
- Resource
Id string - The identifier of the resource associated with the scalable target
- Scalable
Dimension string - The scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property
- Service
Namespace string - The namespace of the AWS service that provides the resource, or a custom-resource
- resource
Id String - The identifier of the resource associated with the scalable target
- scalable
Dimension String - The scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property
- service
Namespace String - The namespace of the AWS service that provides the resource, or a custom-resource
- resource
Id string - The identifier of the resource associated with the scalable target
- scalable
Dimension string - The scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property
- service
Namespace string - The namespace of the AWS service that provides the resource, or a custom-resource
- 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
- resource
Id String - The identifier of the resource associated with the scalable target
- scalable
Dimension String - The scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property
- service
Namespace String - The namespace of the AWS service that provides the resource, or a custom-resource
getScalableTarget Result
The following output properties are available:
- Id 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
- 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
- Scheduled
Actions List<Pulumi.Aws Native. Application Auto Scaling. Outputs. Scalable Target Scheduled Action> - The scheduled actions for the scalable target. Duplicates aren't allowed.
- Suspended
State Pulumi.Aws Native. Application Auto Scaling. Outputs. Scalable Target Suspended State - 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.
- Id 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
- 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
- Scheduled
Actions []ScalableTarget Scheduled Action - The scheduled actions for the scalable target. Duplicates aren't allowed.
- Suspended
State ScalableTarget Suspended State - 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.
- id 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
- max
Capacity 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
- min
Capacity 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
- scheduled
Actions List<ScalableTarget Scheduled Action> - The scheduled actions for the scalable target. Duplicates aren't allowed.
- suspended
State ScalableTarget Suspended State - 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.
- id 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
- max
Capacity 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
- min
Capacity 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
- scheduled
Actions ScalableTarget Scheduled Action[] - The scheduled actions for the scalable target. Duplicates aren't allowed.
- suspended
State ScalableTarget Suspended State - 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.
- 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
- 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
- scheduled_
actions Sequence[ScalableTarget Scheduled Action] - The scheduled actions for the scalable target. Duplicates aren't allowed.
- suspended_
state ScalableTarget Suspended State - 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.
- id 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
- max
Capacity 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
- min
Capacity 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
- scheduled
Actions List<Property Map> - The scheduled actions for the scalable target. Duplicates aren't allowed.
- suspended
State 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.
Supporting Types
ScalableTargetAction
- Max
Capacity int - Min
Capacity int
- Max
Capacity int - Min
Capacity int
- max
Capacity Integer - min
Capacity Integer
- max
Capacity number - min
Capacity number
- max_
capacity int - min_
capacity int
- max
Capacity Number - min
Capacity Number
ScalableTargetScheduledAction
- Schedule string
- Scheduled
Action stringName - End
Time string - Scalable
Target Pulumi.Action Aws Native. Application Auto Scaling. Inputs. Scalable Target Action - Start
Time string - Timezone string
- Schedule string
- Scheduled
Action stringName - End
Time string - Scalable
Target ScalableAction Target Action - Start
Time string - Timezone string
- schedule String
- scheduled
Action StringName - end
Time String - scalable
Target ScalableAction Target Action - start
Time String - timezone String
- schedule string
- scheduled
Action stringName - end
Time string - scalable
Target ScalableAction Target Action - start
Time string - timezone string
- schedule String
- scheduled
Action StringName - end
Time String - scalable
Target Property MapAction - start
Time String - timezone String
ScalableTargetSuspendedState
- dynamic
Scaling BooleanIn Suspended - dynamic
Scaling BooleanOut Suspended - scheduled
Scaling BooleanSuspended
- dynamic
Scaling booleanIn Suspended - dynamic
Scaling booleanOut Suspended - scheduled
Scaling booleanSuspended
- dynamic
Scaling BooleanIn Suspended - dynamic
Scaling BooleanOut Suspended - scheduled
Scaling BooleanSuspended
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.
AWS Native v0.103.0 published on Monday, Apr 22, 2024 by Pulumi