DeleteScheduledActionOR와 함께 사용 AWS SDK CLI - AWS SDK코드 예제

AWS 문서 AWS SDK SDK 예제 GitHub 리포지토리에 더 많은 예제가 있습니다.

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

DeleteScheduledActionOR와 함께 사용 AWS SDK CLI

다음 코드 예제는 DeleteScheduledAction의 사용 방법을 보여 줍니다.

CLI
AWS CLI

예약된 작업 삭제

다음 delete-scheduled-action 예제는 지정된 Amazon AppStream 2.0 플릿에서 지정된 스케줄링된 작업을 삭제합니다.

aws application-autoscaling delete-scheduled-action \ --service-namespace appstream \ --scalable-dimension appstream:fleet:DesiredCapacity \ --resource-id fleet/sample-fleet \ --scheduled-action-name my-recurring-action

이 명령은 출력을 생성하지 않습니다.

자세한 내용은 https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-scheduled-scaling.htmlApplication Auto Scaling 사용 설명서의 예약된 조정을 참조하세요.

PowerShell
도구: PowerShell

예 1: 이 cmdlet은 Application Auto Scaling 확장 가능 대상에 대해 지정된 스케줄링된 작업을 삭제합니다.

Remove-AASScheduledAction -ServiceNamespace AppStream -ScheduledActionName WeekDaysFleetScaling -ResourceId fleet/MyFleet -ScalableDimension appstream:fleet:DesiredCapacity

출력:

Confirm Are you sure you want to perform this action? Performing the operation "Remove-AASScheduledAction (DeleteScheduledAction)" on target "WeekDaysFleetScaling". [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): Y
  • API자세한 내용은 Cmdlet 참조를 참조하십시오 DeleteScheduledAction.AWS Tools for PowerShell