Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare changelog for release #428

Merged
merged 4 commits into from
Jun 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion all_apis/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: all_apis
publish_to: none

environment:
sdk: '>=2.17.0 <3.0.0'
sdk: '^3.0.0'

dependencies:
shared_aws_api:
Expand Down
1 change: 1 addition & 0 deletions aws_client/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## 0.6.0

- Expose `package:aws_client/credential_providers.dart` for advanced options to resolve the `AwsClientCredentials`
- Remove double-encode of request URI when generating signature for S3
- Internal refactoring of the query protocol
- Internal refactor of enums serialization

Expand Down
114 changes: 46 additions & 68 deletions aws_client/lib/src/generated/access_analyzer/v2019_11_01.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1609,10 +1609,8 @@ class AccessPreviewFinding {
resourceOwnerAccount: json['resourceOwnerAccount'] as String,
resourceType: ResourceType.fromString((json['resourceType'] as String)),
status: FindingStatus.fromString((json['status'] as String)),
action: (json['action'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
action:
(json['action'] as List?)?.nonNulls.map((e) => e as String).toList(),
condition: (json['condition'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
error: json['error'] as String?,
Expand All @@ -1624,7 +1622,7 @@ class AccessPreviewFinding {
?.map((k, e) => MapEntry(k, e as String)),
resource: json['resource'] as String?,
sources: (json['sources'] as List?)
?.whereNotNull()
?.nonNulls
.map((e) => FindingSource.fromJson(e as Map<String, dynamic>))
.toList(),
);
Expand Down Expand Up @@ -1901,13 +1899,11 @@ class AnalyzedResource {
resourceOwnerAccount: json['resourceOwnerAccount'] as String,
resourceType: ResourceType.fromString((json['resourceType'] as String)),
updatedAt: nonNullableTimeStampFromJson(json['updatedAt'] as Object),
actions: (json['actions'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
actions:
(json['actions'] as List?)?.nonNulls.map((e) => e as String).toList(),
error: json['error'] as String?,
sharedVia: (json['sharedVia'] as List?)
?.whereNotNull()
?.nonNulls
.map((e) => e as String)
.toList(),
status: (json['status'] as String?)?.let(FindingStatus.fromString),
Expand Down Expand Up @@ -2213,7 +2209,7 @@ class CheckAccessNotGrantedResponse {
return CheckAccessNotGrantedResponse(
message: json['message'] as String?,
reasons: (json['reasons'] as List?)
?.whereNotNull()
?.nonNulls
.map((e) => ReasonSummary.fromJson(e as Map<String, dynamic>))
.toList(),
result: (json['result'] as String?)
Expand Down Expand Up @@ -2270,7 +2266,7 @@ class CheckNoNewAccessResponse {
return CheckNoNewAccessResponse(
message: json['message'] as String?,
reasons: (json['reasons'] as List?)
?.whereNotNull()
?.nonNulls
.map((e) => ReasonSummary.fromJson(e as Map<String, dynamic>))
.toList(),
result:
Expand Down Expand Up @@ -2374,7 +2370,7 @@ class CloudTrailProperties {
endTime: nonNullableTimeStampFromJson(json['endTime'] as Object),
startTime: nonNullableTimeStampFromJson(json['startTime'] as Object),
trailProperties: (json['trailProperties'] as List)
.whereNotNull()
.nonNulls
.map((e) => TrailProperties.fromJson(e as Map<String, dynamic>))
.toList(),
);
Expand Down Expand Up @@ -2624,18 +2620,12 @@ class Criterion {
factory Criterion.fromJson(Map<String, dynamic> json) {
return Criterion(
contains: (json['contains'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
eq: (json['eq'] as List?)
?.whereNotNull()
?.nonNulls
.map((e) => e as String)
.toList(),
eq: (json['eq'] as List?)?.nonNulls.map((e) => e as String).toList(),
exists: json['exists'] as bool?,
neq: (json['neq'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
neq: (json['neq'] as List?)?.nonNulls.map((e) => e as String).toList(),
);
}

Expand Down Expand Up @@ -2817,15 +2807,11 @@ class EbsSnapshotConfiguration {

factory EbsSnapshotConfiguration.fromJson(Map<String, dynamic> json) {
return EbsSnapshotConfiguration(
groups: (json['groups'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
groups:
(json['groups'] as List?)?.nonNulls.map((e) => e as String).toList(),
kmsKeyId: json['kmsKeyId'] as String?,
userIds: (json['userIds'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
userIds:
(json['userIds'] as List?)?.nonNulls.map((e) => e as String).toList(),
);
}

Expand Down Expand Up @@ -2970,15 +2956,13 @@ class ExternalAccessDetails {
return ExternalAccessDetails(
condition: (json['condition'] as Map<String, dynamic>)
.map((k, e) => MapEntry(k, e as String)),
action: (json['action'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
action:
(json['action'] as List?)?.nonNulls.map((e) => e as String).toList(),
isPublic: json['isPublic'] as bool?,
principal: (json['principal'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
sources: (json['sources'] as List?)
?.whereNotNull()
?.nonNulls
.map((e) => FindingSource.fromJson(e as Map<String, dynamic>))
.toList(),
);
Expand Down Expand Up @@ -3076,17 +3060,15 @@ class Finding {
resourceType: ResourceType.fromString((json['resourceType'] as String)),
status: FindingStatus.fromString((json['status'] as String)),
updatedAt: nonNullableTimeStampFromJson(json['updatedAt'] as Object),
action: (json['action'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
action:
(json['action'] as List?)?.nonNulls.map((e) => e as String).toList(),
error: json['error'] as String?,
isPublic: json['isPublic'] as bool?,
principal: (json['principal'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
resource: json['resource'] as String?,
sources: (json['sources'] as List?)
?.whereNotNull()
?.nonNulls
.map((e) => FindingSource.fromJson(e as Map<String, dynamic>))
.toList(),
);
Expand Down Expand Up @@ -3411,17 +3393,15 @@ class FindingSummary {
resourceType: ResourceType.fromString((json['resourceType'] as String)),
status: FindingStatus.fromString((json['status'] as String)),
updatedAt: nonNullableTimeStampFromJson(json['updatedAt'] as Object),
action: (json['action'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
action:
(json['action'] as List?)?.nonNulls.map((e) => e as String).toList(),
error: json['error'] as String?,
isPublic: json['isPublic'] as bool?,
principal: (json['principal'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
resource: json['resource'] as String?,
sources: (json['sources'] as List?)
?.whereNotNull()
?.nonNulls
.map((e) => FindingSource.fromJson(e as Map<String, dynamic>))
.toList(),
);
Expand Down Expand Up @@ -3658,7 +3638,7 @@ class GeneratedPolicyResult {
properties: GeneratedPolicyProperties.fromJson(
json['properties'] as Map<String, dynamic>),
generatedPolicies: (json['generatedPolicies'] as List?)
?.whereNotNull()
?.nonNulls
.map((e) => GeneratedPolicy.fromJson(e as Map<String, dynamic>))
.toList(),
);
Expand Down Expand Up @@ -3858,7 +3838,7 @@ class GetFindingV2Response {
analyzedAt: nonNullableTimeStampFromJson(json['analyzedAt'] as Object),
createdAt: nonNullableTimeStampFromJson(json['createdAt'] as Object),
findingDetails: (json['findingDetails'] as List)
.whereNotNull()
.nonNulls
.map((e) => FindingDetails.fromJson(e as Map<String, dynamic>))
.toList(),
id: json['id'] as String,
Expand Down Expand Up @@ -4169,7 +4149,7 @@ class KmsGrantConfiguration {
granteePrincipal: json['granteePrincipal'] as String,
issuingAccount: json['issuingAccount'] as String,
operations: (json['operations'] as List)
.whereNotNull()
.nonNulls
.map((e) => KmsGrantOperation.fromString((e as String)))
.toList(),
constraints: json['constraints'] != null
Expand Down Expand Up @@ -4310,7 +4290,7 @@ class KmsKeyConfiguration {
factory KmsKeyConfiguration.fromJson(Map<String, dynamic> json) {
return KmsKeyConfiguration(
grants: (json['grants'] as List?)
?.whereNotNull()
?.nonNulls
.map((e) => KmsGrantConfiguration.fromJson(e as Map<String, dynamic>))
.toList(),
keyPolicies: (json['keyPolicies'] as Map<String, dynamic>?)
Expand Down Expand Up @@ -4344,7 +4324,7 @@ class ListAccessPreviewFindingsResponse {
Map<String, dynamic> json) {
return ListAccessPreviewFindingsResponse(
findings: (json['findings'] as List)
.whereNotNull()
.nonNulls
.map((e) => AccessPreviewFinding.fromJson(e as Map<String, dynamic>))
.toList(),
nextToken: json['nextToken'] as String?,
Expand Down Expand Up @@ -4376,7 +4356,7 @@ class ListAccessPreviewsResponse {
factory ListAccessPreviewsResponse.fromJson(Map<String, dynamic> json) {
return ListAccessPreviewsResponse(
accessPreviews: (json['accessPreviews'] as List)
.whereNotNull()
.nonNulls
.map((e) => AccessPreviewSummary.fromJson(e as Map<String, dynamic>))
.toList(),
nextToken: json['nextToken'] as String?,
Expand Down Expand Up @@ -4409,7 +4389,7 @@ class ListAnalyzedResourcesResponse {
factory ListAnalyzedResourcesResponse.fromJson(Map<String, dynamic> json) {
return ListAnalyzedResourcesResponse(
analyzedResources: (json['analyzedResources'] as List)
.whereNotNull()
.nonNulls
.map((e) =>
AnalyzedResourceSummary.fromJson(e as Map<String, dynamic>))
.toList(),
Expand Down Expand Up @@ -4443,7 +4423,7 @@ class ListAnalyzersResponse {
factory ListAnalyzersResponse.fromJson(Map<String, dynamic> json) {
return ListAnalyzersResponse(
analyzers: (json['analyzers'] as List)
.whereNotNull()
.nonNulls
.map((e) => AnalyzerSummary.fromJson(e as Map<String, dynamic>))
.toList(),
nextToken: json['nextToken'] as String?,
Expand Down Expand Up @@ -4476,7 +4456,7 @@ class ListArchiveRulesResponse {
factory ListArchiveRulesResponse.fromJson(Map<String, dynamic> json) {
return ListArchiveRulesResponse(
archiveRules: (json['archiveRules'] as List)
.whereNotNull()
.nonNulls
.map((e) => ArchiveRuleSummary.fromJson(e as Map<String, dynamic>))
.toList(),
nextToken: json['nextToken'] as String?,
Expand Down Expand Up @@ -4510,7 +4490,7 @@ class ListFindingsResponse {
factory ListFindingsResponse.fromJson(Map<String, dynamic> json) {
return ListFindingsResponse(
findings: (json['findings'] as List)
.whereNotNull()
.nonNulls
.map((e) => FindingSummary.fromJson(e as Map<String, dynamic>))
.toList(),
nextToken: json['nextToken'] as String?,
Expand Down Expand Up @@ -4543,7 +4523,7 @@ class ListFindingsV2Response {
factory ListFindingsV2Response.fromJson(Map<String, dynamic> json) {
return ListFindingsV2Response(
findings: (json['findings'] as List)
.whereNotNull()
.nonNulls
.map((e) => FindingSummaryV2.fromJson(e as Map<String, dynamic>))
.toList(),
nextToken: json['nextToken'] as String?,
Expand Down Expand Up @@ -4576,7 +4556,7 @@ class ListPolicyGenerationsResponse {
factory ListPolicyGenerationsResponse.fromJson(Map<String, dynamic> json) {
return ListPolicyGenerationsResponse(
policyGenerations: (json['policyGenerations'] as List)
.whereNotNull()
.nonNulls
.map((e) => PolicyGeneration.fromJson(e as Map<String, dynamic>))
.toList(),
nextToken: json['nextToken'] as String?,
Expand Down Expand Up @@ -4656,7 +4636,7 @@ class Location {
factory Location.fromJson(Map<String, dynamic> json) {
return Location(
path: (json['path'] as List)
.whereNotNull()
.nonNulls
.map((e) => PathElement.fromJson(e as Map<String, dynamic>))
.toList(),
span: Span.fromJson(json['span'] as Map<String, dynamic>),
Expand Down Expand Up @@ -4941,7 +4921,7 @@ class RdsDbClusterSnapshotAttributeValue {
Map<String, dynamic> json) {
return RdsDbClusterSnapshotAttributeValue(
accountIds: (json['accountIds'] as List?)
?.whereNotNull()
?.nonNulls
.map((e) => e as String)
.toList(),
);
Expand Down Expand Up @@ -5051,7 +5031,7 @@ class RdsDbSnapshotAttributeValue {
factory RdsDbSnapshotAttributeValue.fromJson(Map<String, dynamic> json) {
return RdsDbSnapshotAttributeValue(
accountIds: (json['accountIds'] as List?)
?.whereNotNull()
?.nonNulls
.map((e) => e as String)
.toList(),
);
Expand Down Expand Up @@ -5340,7 +5320,7 @@ class S3BucketConfiguration {
(k, e) => MapEntry(k,
S3AccessPointConfiguration.fromJson(e as Map<String, dynamic>))),
bucketAclGrants: (json['bucketAclGrants'] as List?)
?.whereNotNull()
?.nonNulls
.map((e) =>
S3BucketAclGrantConfiguration.fromJson(e as Map<String, dynamic>))
.toList(),
Expand Down Expand Up @@ -5771,10 +5751,8 @@ class TrailProperties {
return TrailProperties(
cloudTrailArn: json['cloudTrailArn'] as String,
allRegions: json['allRegions'] as bool?,
regions: (json['regions'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
regions:
(json['regions'] as List?)?.nonNulls.map((e) => e as String).toList(),
);
}

Expand Down Expand Up @@ -5996,7 +5974,7 @@ class UnusedPermissionDetails {
return UnusedPermissionDetails(
serviceNamespace: json['serviceNamespace'] as String,
actions: (json['actions'] as List?)
?.whereNotNull()
?.nonNulls
.map((e) => UnusedAction.fromJson(e as Map<String, dynamic>))
.toList(),
lastAccessed: timeStampFromJson(json['lastAccessed']),
Expand Down Expand Up @@ -6064,7 +6042,7 @@ class ValidatePolicyFinding {
issueCode: json['issueCode'] as String,
learnMoreLink: json['learnMoreLink'] as String,
locations: (json['locations'] as List)
.whereNotNull()
.nonNulls
.map((e) => Location.fromJson(e as Map<String, dynamic>))
.toList(),
);
Expand Down Expand Up @@ -6138,7 +6116,7 @@ class ValidatePolicyResponse {
factory ValidatePolicyResponse.fromJson(Map<String, dynamic> json) {
return ValidatePolicyResponse(
findings: (json['findings'] as List)
.whereNotNull()
.nonNulls
.map((e) => ValidatePolicyFinding.fromJson(e as Map<String, dynamic>))
.toList(),
nextToken: json['nextToken'] as String?,
Expand Down
2 changes: 1 addition & 1 deletion aws_client/lib/src/generated/account/v2021_02_01.dart
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ class ListRegionsResponse {
return ListRegionsResponse(
nextToken: json['NextToken'] as String?,
regions: (json['Regions'] as List?)
?.whereNotNull()
?.nonNulls
.map((e) => Region.fromJson(e as Map<String, dynamic>))
.toList(),
);
Expand Down
Loading
Loading