-
-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
39 changed files
with
941 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
98 changes: 53 additions & 45 deletions
98
src/Service/CognitoIdentityProvider/src/CognitoIdentityProviderClient.php
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
78 changes: 78 additions & 0 deletions
78
src/Service/CognitoIdentityProvider/src/ValueObject/EmailMfaSettingsType.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<?php | ||
|
||
namespace AsyncAws\CognitoIdentityProvider\ValueObject; | ||
|
||
/** | ||
* User preferences for multi-factor authentication with email messages. Activates or deactivates email MFA and sets it | ||
* as the preferred MFA method when multiple methods are available. To activate this setting, advanced security features | ||
* [^1] must be active in your user pool. | ||
* | ||
* [^1]: https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-advanced-security.html | ||
*/ | ||
final class EmailMfaSettingsType | ||
{ | ||
/** | ||
* Specifies whether email message MFA is active for a user. When the value of this parameter is `Enabled`, the user | ||
* will be prompted for MFA during all sign-in attempts, unless device tracking is turned on and the device has been | ||
* trusted. | ||
* | ||
* @var bool|null | ||
*/ | ||
private $enabled; | ||
|
||
/** | ||
* Specifies whether email message MFA is the user's preferred method. | ||
* | ||
* @var bool|null | ||
*/ | ||
private $preferredMfa; | ||
|
||
/** | ||
* @param array{ | ||
* Enabled?: null|bool, | ||
* PreferredMfa?: null|bool, | ||
* } $input | ||
*/ | ||
public function __construct(array $input) | ||
{ | ||
$this->enabled = $input['Enabled'] ?? null; | ||
$this->preferredMfa = $input['PreferredMfa'] ?? null; | ||
} | ||
|
||
/** | ||
* @param array{ | ||
* Enabled?: null|bool, | ||
* PreferredMfa?: null|bool, | ||
* }|EmailMfaSettingsType $input | ||
*/ | ||
public static function create($input): self | ||
{ | ||
return $input instanceof self ? $input : new self($input); | ||
} | ||
|
||
public function getEnabled(): ?bool | ||
{ | ||
return $this->enabled; | ||
} | ||
|
||
public function getPreferredMfa(): ?bool | ||
{ | ||
return $this->preferredMfa; | ||
} | ||
|
||
/** | ||
* @internal | ||
*/ | ||
public function requestBody(): array | ||
{ | ||
$payload = []; | ||
if (null !== $v = $this->enabled) { | ||
$payload['Enabled'] = (bool) $v; | ||
} | ||
if (null !== $v = $this->preferredMfa) { | ||
$payload['PreferredMfa'] = (bool) $v; | ||
} | ||
|
||
return $payload; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ | |
}, | ||
"extra": { | ||
"branch-alias": { | ||
"dev-master": "1.3-dev" | ||
"dev-master": "1.4-dev" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/Service/MediaConvert/src/Enum/CaptionSourceByteRateLimit.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
namespace AsyncAws\MediaConvert\Enum; | ||
|
||
/** | ||
* Choose whether to limit the byte rate at which your SCC input captions are inserted into your output. To not limit | ||
* the caption rate: We recommend that you keep the default value, Disabled. MediaConvert inserts captions in your | ||
* output according to the byte rates listed in the EIA-608 specification, typically 2 or 3 caption bytes per frame | ||
* depending on your output frame rate. To limit your output caption rate: Choose Enabled. Choose this option if your | ||
* downstream systems require a maximum of 2 caption bytes per frame. Note that this setting has no effect when your | ||
* output frame rate is 30 or 60. | ||
*/ | ||
final class CaptionSourceByteRateLimit | ||
{ | ||
public const DISABLED = 'DISABLED'; | ||
public const ENABLED = 'ENABLED'; | ||
|
||
public static function exists(string $value): bool | ||
{ | ||
return isset([ | ||
self::DISABLED => true, | ||
self::ENABLED => true, | ||
][$value]); | ||
} | ||
} |
Oops, something went wrong.