Skip to content

Commit aed5269

Browse files
authored
Set DTO classes Final (#467)
* Make DTO objects final * Regenerate code * Add entry in changelogs
1 parent d0640c5 commit aed5269

File tree

8 files changed

+8
-7
lines changed

8 files changed

+8
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### Changed
66

77
- The `StreamableBodyInterface::getChunks` now returns a iterrable of string.
8+
- The `AsyncAws\Core\Sts\Input\*` and `AsyncAws\Core\Sts\ValueObject*` classes are marked final.
89

910
## 0.4.0
1011

src/Sts/Input/AssumeRoleRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use AsyncAws\Core\Sts\ValueObject\PolicyDescriptorType;
1010
use AsyncAws\Core\Sts\ValueObject\Tag;
1111

12-
class AssumeRoleRequest implements Input
12+
final class AssumeRoleRequest implements Input
1313
{
1414
/**
1515
* The Amazon Resource Name (ARN) of the role to assume.

src/Sts/Input/AssumeRoleWithWebIdentityRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use AsyncAws\Core\Stream\StreamFactory;
99
use AsyncAws\Core\Sts\ValueObject\PolicyDescriptorType;
1010

11-
class AssumeRoleWithWebIdentityRequest implements Input
11+
final class AssumeRoleWithWebIdentityRequest implements Input
1212
{
1313
/**
1414
* The Amazon Resource Name (ARN) of the role that the caller is assuming.

src/Sts/Input/GetCallerIdentityRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use AsyncAws\Core\Request;
77
use AsyncAws\Core\Stream\StreamFactory;
88

9-
class GetCallerIdentityRequest implements Input
9+
final class GetCallerIdentityRequest implements Input
1010
{
1111
public static function create($input): self
1212
{

src/Sts/ValueObject/AssumedRoleUser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace AsyncAws\Core\Sts\ValueObject;
44

5-
class AssumedRoleUser
5+
final class AssumedRoleUser
66
{
77
/**
88
* A unique identifier that contains the role ID and the role session name of the role that is being assumed. The role

src/Sts/ValueObject/Credentials.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace AsyncAws\Core\Sts\ValueObject;
44

5-
class Credentials
5+
final class Credentials
66
{
77
/**
88
* The access key ID that identifies the temporary security credentials.

src/Sts/ValueObject/PolicyDescriptorType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace AsyncAws\Core\Sts\ValueObject;
44

5-
class PolicyDescriptorType
5+
final class PolicyDescriptorType
66
{
77
/**
88
* The Amazon Resource Name (ARN) of the IAM managed policy to use as a session policy for the role. For more

src/Sts/ValueObject/Tag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use AsyncAws\Core\Exception\InvalidArgument;
66

7-
class Tag
7+
final class Tag
88
{
99
/**
1010
* The key for a session tag.

0 commit comments

Comments
 (0)