0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Windows PowerShell での Connect 操作例

Last updated at Posted at 2023-10-16

はじめに

  • Windows PowerShell です
  • Connect 操作する必要があり、その備忘です

手順

IAM 操作権限

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": [
                "ds:DescribeDirectories",
                "connect:ListInstances",
                "connect:ListRoutingProfiles",
                "connect:ListSecurityProfiles",
                "connect:ListUsers",
                "connect:CreateUser",
                "connect:DescribeUser",
                "connect:UpdateUser*",
                "connect:DeleteUser"
            ],
            "Resource": "*"
        }
    ]
}

プロファイル設定と確認

${profile} = {プロファイルを指定}

aws sts get-caller-identity `
    --query "Account" `
    --output text `
    --profile ${profile} `

インスタンスの一覧取得と設定

aws connect list-instances `
    --profile ${profile}

${instance-id} = {任意のIdを指定}

セキュリティプロファイルの一覧取得と設定

aws connect list-security-profiles `
    --profile ${profile} `
    --instance-id ${instance-id}

${security-profile-id} = {任意のIdを指定}

ルーティングプロファイルの一覧取得と設定

aws connect list-routing-profiles `
    --profile ${profile} `
    --instance-id ${instance-id}

${routing-profile-id} = {任意のIdを指定}

Amazon Connect ユーザ作成

${username} = "Mary"
${password} = "Pass@Word1"
${identity-info} = "FirstName=Mary,LastName=Major"
${phone-config} = "PhoneType=SOFT_PHONE,AutoAccept=false,AfterContactWorkTimeLimit=0"

aws connect create-user `
    --profile ${profile} `
    --username ${username} `
    --password ${password} `
    --identity-info ${identity-info} `
    --phone-config ${phone-config} `
    --security-profile-id ${security-profile-id} `
    --routing-profile-id ${routing-profile-id} `
    --instance-id ${instance-id}

Amazon Connect ユーザの一覧取得と設定

aws connect list-users `
    --profile ${profile} `
    --instance-id ${instance-id}

${user-id} = {任意のIdを指定}

Amazon Connect ユーザの削除

aws connect delete-user `
    --profile ${profile} `
    --instance-id ${instance-id} `
    --user-id ${user-id}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?