AWS Tools for Windows PowerShell
Command Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Synopsis

Calls the Compute Optimizer Automation Service UpdateAutomationRule API operation.

Syntax

Update-COAAutomationRule
-OrganizationConfiguration_AccountId <String[]>
-Description <String>
-Criteria_EbsVolumeSizeInGib <IntegerCriteriaCondition[]>
-Criteria_EbsVolumeType <StringCriteriaCondition[]>
-Criteria_EstimatedMonthlySaving <DoubleCriteriaCondition[]>
-Schedule_ExecutionWindowInMinute <Int32>
-Criteria_LookBackPeriodInDay <IntegerCriteriaCondition[]>
-Name <String>
-Priority <String>
-RecommendedActionType <String[]>
-Criteria_Region <StringCriteriaCondition[]>
-Criteria_ResourceArn <StringCriteriaCondition[]>
-Criteria_ResourceTag <ResourceTagsCriteriaCondition[]>
-Criteria_RestartNeeded <StringCriteriaCondition[]>
-OrganizationConfiguration_RuleApplyOrder <RuleApplyOrder>
-RuleArn <String>
-RuleRevision <Int64>
-RuleType <RuleType>
-Schedule_ScheduleExpression <String>
-Schedule_ScheduleExpressionTimezone <String>
-Status <RuleStatus>
-ClientToken <String>
-Select <String>
-Force <SwitchParameter>
-ClientConfig <AmazonComputeOptimizerAutomationConfig>

Description

Updates an existing automation rule.

Parameters

Amazon.PowerShell.Cmdlets.COA.AmazonComputeOptimizerAutomationClientCmdlet.ClientConfig
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-ClientToken <String>
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Must be 1-64 characters long and contain only alphanumeric characters, underscores, and hyphens.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Criteria_EbsVolumeSizeInGib <IntegerCriteriaCondition[]>
Filter criteria for EBS volume sizes in gibibytes (GiB).
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Criteria_EbsVolumeType <StringCriteriaCondition[]>
Filter criteria for EBS volume types, such as gp2, gp3, io1, io2, st1, or sc1.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Criteria_EstimatedMonthlySaving <DoubleCriteriaCondition[]>
Filter criteria for estimated monthly cost savings from the recommended action.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesCriteria_EstimatedMonthlySavings
-Criteria_LookBackPeriodInDay <IntegerCriteriaCondition[]>
Filter criteria for the lookback period in days used to analyze resource utilization.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesCriteria_LookBackPeriodInDays
-Criteria_Region <StringCriteriaCondition[]>
Filter criteria for Amazon Web Services regions where resources must be located.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Criteria_ResourceArn <StringCriteriaCondition[]>
Filter criteria for specific resource ARNs to include or exclude.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Criteria_ResourceTag <ResourceTagsCriteriaCondition[]>
Filter criteria for resource tags, allowing filtering by tag key and value combinations.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Criteria_RestartNeeded <StringCriteriaCondition[]>
Filter criteria indicating whether the recommended action requires a resource restart.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Description <String>
The updated description of the automation rule. Can be up to 1024 characters long and contain alphanumeric characters, underscores, hyphens, spaces, and certain special characters.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
This parameter overrides confirmation prompts to force the cmdlet to continue its operation. This parameter should always be used with caution.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Name <String>
The updated name of the automation rule. Must be 1-128 characters long and contain only alphanumeric characters, underscores, and hyphens.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-OrganizationConfiguration_AccountId <String[]>
List of specific Amazon Web Services account IDs where the organization rule should be applied.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesOrganizationConfiguration_AccountIds
-OrganizationConfiguration_RuleApplyOrder <RuleApplyOrder>
Specifies when organization rules should be applied relative to account rules.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Priority <String>
The updated priority level of the automation rule, used to determine execution order when multiple rules apply to the same resource.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-RecommendedActionType <String[]>
Updated list of recommended action types that this rule can execute, such as SnapshotAndDeleteUnattachedEbsVolume or UpgradeEbsVolumeType.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesRecommendedActionTypes
-RuleArn <String>
The ARN of the rule to update.
Required?True
Position?Named
Accept pipeline input?True (ByPropertyName)
-RuleRevision <Int64>
The revision number of the rule to update.
Required?True
Position?Named
Accept pipeline input?True (ByPropertyName)
-RuleType <RuleType>
The updated type of automation rule. Can be either OrganizationRule for organization-wide rules or AccountRule for account-specific rules.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Schedule_ExecutionWindowInMinute <Int32>
The time window in minutes during which the automation rule can start implementing recommended actions.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSchedule_ExecutionWindowInMinutes
-Schedule_ScheduleExpression <String>
The expression that defines when the schedule runs. cron expression is supported. A cron expression consists of six fields separated by white spaces: (minuteshoursday_of_monthmonthday_of_weekyear)You can schedule rules to run at most once per day. Your cron expression must use specific values (not wildcards) for the minutes and hours fields. For example: (30 12 * * *) runs daily at 12:30 PM UTC.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Schedule_ScheduleExpressionTimezone <String>
The timezone to use when interpreting the schedule expression.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Select <String>
Use the -Select parameter to control the cmdlet output. The default value is '*'. Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.ComputeOptimizerAutomation.Model.UpdateAutomationRuleResponse). Specifying the name of a property of type Amazon.ComputeOptimizerAutomation.Model.UpdateAutomationRuleResponse will result in that property being returned. Specifying -Select '^ParameterName' will result in the cmdlet returning the selected cmdlet parameter value.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Status <RuleStatus>
The updated status of the automation rule. Can be Active or Inactive.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)

Common Credential and Region Parameters

-AccessKey <String>
The AWS access key for the user account. This can be a temporary access key if the corresponding session token is supplied to the -SessionToken parameter.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesAK
-Credential <AWSCredentials>
An AWSCredentials object instance containing access and secret key information, and optionally a token for session-based credentials.
Required?False
Position?Named
Accept pipeline input?True (ByValue, ByPropertyName)
-EndpointUrl <String>
The endpoint to make the call against.Note: This parameter is primarily for internal AWS use and is not required/should not be specified for normal usage. The cmdlets normally determine which endpoint to call based on the region specified to the -Region parameter or set as default in the shell (via Set-DefaultAWSRegion). Only specify this parameter if you must direct the call to a specific custom endpoint.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-NetworkCredential <PSCredential>
Used with SAML-based authentication when ProfileName references a SAML role profile. Contains the network credentials to be supplied during authentication with the configured identity provider's endpoint. This parameter is not required if the user's default network identity can or should be used during authentication.
Required?False
Position?Named
Accept pipeline input?True (ByValue, ByPropertyName)
-ProfileLocation <String>
Used to specify the name and location of the ini-format credential file (shared with the AWS CLI and other AWS SDKs)If this optional parameter is omitted this cmdlet will search the encrypted credential file used by the AWS SDK for .NET and AWS Toolkit for Visual Studio first. If the profile is not found then the cmdlet will search in the ini-format credential file at the default location: (user's home directory)\.aws\credentials.If this parameter is specified then this cmdlet will only search the ini-format credential file at the location given.As the current folder can vary in a shell or during script execution it is advised that you use specify a fully qualified path instead of a relative path.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesAWSProfilesLocation, ProfilesLocation
-ProfileName <String>
The user-defined name of an AWS credentials or SAML-based role profile containing credential information. The profile is expected to be found in the secure credential file shared with the AWS SDK for .NET and AWS Toolkit for Visual Studio. You can also specify the name of a profile stored in the .ini-format credential file used with the AWS CLI and other AWS SDKs.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesStoredCredentials, AWSProfileName
-Region <Object>
The system name of an AWS region or an AWSRegion instance. This governs the endpoint that will be used when calling service operations. Note that the AWS resources referenced in a call are usually region-specific.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesRegionToCall
-SecretKey <String>
The AWS secret key for the user account. This can be a temporary secret key if the corresponding session token is supplied to the -SessionToken parameter.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSK, SecretAccessKey
-SessionToken <String>
The session token if the access and secret keys are temporary session-based credentials.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesST

Outputs

This cmdlet returns an Amazon.ComputeOptimizerAutomation.Model.UpdateAutomationRuleResponse object containing multiple properties.

Supported Version

AWS Tools for PowerShell: 2.x.y.z