Skip to content

Commit

Permalink
Update models from aws-sdk-go-v2 release-2024-06-07
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Jun 10, 2024
1 parent 07da2b3 commit c232db8
Show file tree
Hide file tree
Showing 718 changed files with 28,938 additions and 1,432,153 deletions.
3 changes: 3 additions & 0 deletions Sources/Soto/Services/ACMPCA/ACMPCA_api.swift
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,7 @@ extension ACMPCA {
acceptors: [
.init(state: .success, matcher: try! JMESPathMatcher("auditReportStatus", expected: "SUCCESS")),
.init(state: .failure, matcher: try! JMESPathMatcher("auditReportStatus", expected: "FAILED")),
.init(state: .failure, matcher: AWSErrorCodeMatcher("AccessDeniedException")),
],
minDelayTime: .seconds(3),
command: self.describeCertificateAuthorityAuditReport
Expand All @@ -728,6 +729,7 @@ extension ACMPCA {
acceptors: [
.init(state: .success, matcher: AWSSuccessMatcher()),
.init(state: .retry, matcher: AWSErrorCodeMatcher("RequestInProgressException")),
.init(state: .failure, matcher: AWSErrorCodeMatcher("AccessDeniedException")),
],
minDelayTime: .seconds(3),
command: self.getCertificateAuthorityCsr
Expand All @@ -744,6 +746,7 @@ extension ACMPCA {
acceptors: [
.init(state: .success, matcher: AWSSuccessMatcher()),
.init(state: .retry, matcher: AWSErrorCodeMatcher("RequestInProgressException")),
.init(state: .failure, matcher: AWSErrorCodeMatcher("AccessDeniedException")),
],
minDelayTime: .seconds(1),
command: self.getCertificate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ public struct AccessAnalyzer: AWSService {
static var variantEndpoints: [EndpointVariantType: AWSServiceConfig.EndpointVariant] {[
[.fips]: .init(endpoints: [
"ca-central-1": "access-analyzer-fips.ca-central-1.amazonaws.com",
"ca-west-1": "access-analyzer-fips.ca-west-1.amazonaws.com",
"us-east-1": "access-analyzer-fips.us-east-1.amazonaws.com",
"us-east-2": "access-analyzer-fips.us-east-2.amazonaws.com",
"us-gov-east-1": "access-analyzer.us-gov-east-1.amazonaws.com",
Expand Down
41 changes: 40 additions & 1 deletion Sources/Soto/Services/Account/Account_api.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,19 @@ public struct Account: AWSService {

// MARK: API Calls

/// Accepts the request that originated from StartPrimaryEmailUpdate to update the primary email address (also known as the root user email address) for the specified account.
@Sendable
public func acceptPrimaryEmailUpdate(_ input: AcceptPrimaryEmailUpdateRequest, logger: Logger = AWSClient.loggingDisabled) async throws -> AcceptPrimaryEmailUpdateResponse {
return try await self.client.execute(
operation: "AcceptPrimaryEmailUpdate",
path: "/acceptPrimaryEmailUpdate",
httpMethod: .POST,
serviceConfig: self.config,
input: input,
logger: logger
)
}

/// Deletes the specified alternate contact from an Amazon Web Services account. For complete details about how to use the alternate contact operations, see Access or updating the alternate contacts. Before you can update the alternate contact information for an Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management and Organizations. For more information, see Enabling trusted access for Amazon Web Services Account Management.
@Sendable
public func deleteAlternateContact(_ input: DeleteAlternateContactRequest, logger: Logger = AWSClient.loggingDisabled) async throws {
Expand All @@ -96,7 +109,7 @@ public struct Account: AWSService {
)
}

/// Disables (opts-out) a particular Region for an account.
/// Disables (opts-out) a particular Region for an account. The act of disabling a Region will remove all IAM access to any resources that reside in that Region.
@Sendable
public func disableRegion(_ input: DisableRegionRequest, logger: Logger = AWSClient.loggingDisabled) async throws {
return try await self.client.execute(
Expand Down Expand Up @@ -148,6 +161,19 @@ public struct Account: AWSService {
)
}

/// Retrieves the primary email address for the specified account.
@Sendable
public func getPrimaryEmail(_ input: GetPrimaryEmailRequest, logger: Logger = AWSClient.loggingDisabled) async throws -> GetPrimaryEmailResponse {
return try await self.client.execute(
operation: "GetPrimaryEmail",
path: "/getPrimaryEmail",
httpMethod: .POST,
serviceConfig: self.config,
input: input,
logger: logger
)
}

/// Retrieves the opt-in status of a particular Region.
@Sendable
public func getRegionOptStatus(_ input: GetRegionOptStatusRequest, logger: Logger = AWSClient.loggingDisabled) async throws -> GetRegionOptStatusResponse {
Expand Down Expand Up @@ -199,6 +225,19 @@ public struct Account: AWSService {
logger: logger
)
}

/// Starts the process to update the primary email address for the specified account.
@Sendable
public func startPrimaryEmailUpdate(_ input: StartPrimaryEmailUpdateRequest, logger: Logger = AWSClient.loggingDisabled) async throws -> StartPrimaryEmailUpdateResponse {
return try await self.client.execute(
operation: "StartPrimaryEmailUpdate",
path: "/startPrimaryEmailUpdate",
httpMethod: .POST,
serviceConfig: self.config,
input: input,
logger: logger
)
}
}

extension Account {
Expand Down
Loading

0 comments on commit c232db8

Please sign in to comment.