Skip to content

Instantly share code, notes, and snippets.

@pooza
Last active May 13, 2024 03:48
Show Gist options
  • Save pooza/d75551b4523ddcc7ce70a671a9bd2dd9 to your computer and use it in GitHub Desktop.
Save pooza/d75551b4523ddcc7ce70a671a9bd2dd9 to your computer and use it in GitHub Desktop.
AWS Cognito クライアントの初期化
<?php
$client = new Aws\CognitoIdentityProvider\CognitoIdentityProviderClient([
'version' => 'latest',
'region' => REGION,
'credentials' => [
'key' => IAM_ACCESS_KEY,
'secret' => IAM_SECRET_KEY,
],
]);
<?php
$idpool = Aws\CognitoIdentity\CognitoIdentityClient::factory([
'version' => 'latest',
'region' => REGION,
'credentials' => [
'key' => IAM_ACCESS_KEY,
'secret' => IAM_SECRET_KEY,
],
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment