AWS SDK 예제 GitHub 리포지토리에 더 많은 AWS문서 SDK 예제
CLI로 ListFargateProfiles 사용
다음 코드 예시는 ListFargateProfiles의 사용 방법을 보여 줍니다.
- CLI
-
- AWS CLI
-
'my-eks-cluster'라는 Amazon EKS 클러스터의 모든 Fargate 프로파일을 나열하려면
다음
list-fargate-profiles예시에서는 my-eks-cluster라는 Amazon EKS 클러스터의 모든 Fargate 프로파일을 나열합니다.aws eks list-fargate-profiles \ --cluster-namemy-eks-cluster출력:
{ "fargateProfileNames": [ "my-fargate-profile" ] }-
API 세부 정보는 AWS CLI 명령 참조의 ListFargateProfiles
섹션을 참조하세요.
-
- PowerShell
-
- Tools for PowerShell V4
-
예제 1: 이 cmdlet은 지정된 리전에 있는 AWS 계정의 지정된 클러스터와 연결된 AWS Fargate 프로파일을 나열합니다.
Get-EKSFargateProfileList -ClusterName "TEST"출력:
EKSFargate EKSFargateProfile-
API 세부 정보는 AWS Tools for PowerShell Cmdlet 참조(V4)의 ListFargateProfiles을 참조하세요.
-
- Tools for PowerShell V5
-
예제 1: 이 cmdlet은 지정된 리전에 있는 AWS 계정의 지정된 클러스터와 연결된 AWS Fargate 프로파일을 나열합니다.
Get-EKSFargateProfileList -ClusterName "TEST"출력:
EKSFargate EKSFargateProfile-
API 세부 정보는 AWS Tools for PowerShell Cmdlet 참조(V5)의 ListFargateProfiles을 참조하세요.
-
ListClusters
ListNodegroups