New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aws-sdk/client-account

Package Overview
Dependencies
Maintainers
5
Versions
345
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/client-account - npm Package Compare versions

Comparing version 3.590.0 to 3.592.0

dist-es/commands/AcceptPrimaryEmailUpdateCommand.js

245

dist-cjs/index.js

@@ -24,2 +24,4 @@ "use strict";

__export(src_exports, {
AcceptPrimaryEmailUpdateCommand: () => AcceptPrimaryEmailUpdateCommand,
AcceptPrimaryEmailUpdateRequestFilterSensitiveLog: () => AcceptPrimaryEmailUpdateRequestFilterSensitiveLog,
AccessDeniedException: () => AccessDeniedException,

@@ -40,5 +42,8 @@ Account: () => Account,

GetContactInformationResponseFilterSensitiveLog: () => GetContactInformationResponseFilterSensitiveLog,
GetPrimaryEmailCommand: () => GetPrimaryEmailCommand,
GetPrimaryEmailResponseFilterSensitiveLog: () => GetPrimaryEmailResponseFilterSensitiveLog,
GetRegionOptStatusCommand: () => GetRegionOptStatusCommand,
InternalServerException: () => InternalServerException,
ListRegionsCommand: () => ListRegionsCommand,
PrimaryEmailUpdateStatus: () => PrimaryEmailUpdateStatus,
PutAlternateContactCommand: () => PutAlternateContactCommand,

@@ -50,2 +55,4 @@ PutAlternateContactRequestFilterSensitiveLog: () => PutAlternateContactRequestFilterSensitiveLog,

ResourceNotFoundException: () => ResourceNotFoundException,
StartPrimaryEmailUpdateCommand: () => StartPrimaryEmailUpdateCommand,
StartPrimaryEmailUpdateRequestFilterSensitiveLog: () => StartPrimaryEmailUpdateRequestFilterSensitiveLog,
TooManyRequestsException: () => TooManyRequestsException,

@@ -206,13 +213,10 @@ ValidationException: () => ValidationException,

// src/commands/DeleteAlternateContactCommand.ts
// src/commands/AcceptPrimaryEmailUpdateCommand.ts
var import_middleware_serde = require("@smithy/middleware-serde");
var import_types = require("@smithy/types");
// src/protocols/Aws_restJson1.ts
var import_core2 = require("@aws-sdk/core");
// src/models/models_0.ts
// src/models/AccountServiceException.ts

@@ -233,3 +237,6 @@

// src/models/models_0.ts
var PrimaryEmailUpdateStatus = {
ACCEPTED: "ACCEPTED",
PENDING: "PENDING"
};
var _AccessDeniedException = class _AccessDeniedException extends AccountServiceException {

@@ -252,7 +259,19 @@ /**

var AccessDeniedException = _AccessDeniedException;
var AlternateContactType = {
BILLING: "BILLING",
OPERATIONS: "OPERATIONS",
SECURITY: "SECURITY"
var _ConflictException = class _ConflictException extends AccountServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "ConflictException",
$fault: "client",
...opts
});
this.name = "ConflictException";
this.$fault = "client";
Object.setPrototypeOf(this, _ConflictException.prototype);
}
};
__name(_ConflictException, "ConflictException");
var ConflictException = _ConflictException;
var _InternalServerException = class _InternalServerException extends AccountServiceException {

@@ -336,19 +355,7 @@ /**

var ValidationException = _ValidationException;
var _ConflictException = class _ConflictException extends AccountServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "ConflictException",
$fault: "client",
...opts
});
this.name = "ConflictException";
this.$fault = "client";
Object.setPrototypeOf(this, _ConflictException.prototype);
}
var AlternateContactType = {
BILLING: "BILLING",
OPERATIONS: "OPERATIONS",
SECURITY: "SECURITY"
};
__name(_ConflictException, "ConflictException");
var ConflictException = _ConflictException;
var RegionOptStatus = {

@@ -361,2 +368,7 @@ DISABLED: "DISABLED",

};
var AcceptPrimaryEmailUpdateRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.PrimaryEmail && { PrimaryEmail: import_smithy_client.SENSITIVE_STRING },
...obj.Otp && { Otp: import_smithy_client.SENSITIVE_STRING }
}), "AcceptPrimaryEmailUpdateRequestFilterSensitiveLog");
var ValidationExceptionFieldFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({

@@ -407,4 +419,32 @@ ...obj,

}), "PutContactInformationRequestFilterSensitiveLog");
var GetPrimaryEmailResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.PrimaryEmail && { PrimaryEmail: import_smithy_client.SENSITIVE_STRING }
}), "GetPrimaryEmailResponseFilterSensitiveLog");
var StartPrimaryEmailUpdateRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.PrimaryEmail && { PrimaryEmail: import_smithy_client.SENSITIVE_STRING }
}), "StartPrimaryEmailUpdateRequestFilterSensitiveLog");
// src/protocols/Aws_restJson1.ts
var import_core2 = require("@aws-sdk/core");
var se_AcceptPrimaryEmailUpdateCommand = /* @__PURE__ */ __name(async (input, context) => {
const b = (0, import_core.requestBuilder)(input, context);
const headers = {
"content-type": "application/json"
};
b.bp("/acceptPrimaryEmailUpdate");
let body;
body = JSON.stringify(
(0, import_smithy_client.take)(input, {
AccountId: [],
Otp: [],
PrimaryEmail: []
})
);
b.m("POST").h(headers).b(body);
return b.build();
}, "se_AcceptPrimaryEmailUpdateCommand");
var se_DeleteAlternateContactCommand = /* @__PURE__ */ __name(async (input, context) => {

@@ -489,2 +529,17 @@ const b = (0, import_core.requestBuilder)(input, context);

}, "se_GetContactInformationCommand");
var se_GetPrimaryEmailCommand = /* @__PURE__ */ __name(async (input, context) => {
const b = (0, import_core.requestBuilder)(input, context);
const headers = {
"content-type": "application/json"
};
b.bp("/getPrimaryEmail");
let body;
body = JSON.stringify(
(0, import_smithy_client.take)(input, {
AccountId: []
})
);
b.m("POST").h(headers).b(body);
return b.build();
}, "se_GetPrimaryEmailCommand");
var se_GetRegionOptStatusCommand = /* @__PURE__ */ __name(async (input, context) => {

@@ -560,2 +615,32 @@ const b = (0, import_core.requestBuilder)(input, context);

}, "se_PutContactInformationCommand");
var se_StartPrimaryEmailUpdateCommand = /* @__PURE__ */ __name(async (input, context) => {
const b = (0, import_core.requestBuilder)(input, context);
const headers = {
"content-type": "application/json"
};
b.bp("/startPrimaryEmailUpdate");
let body;
body = JSON.stringify(
(0, import_smithy_client.take)(input, {
AccountId: [],
PrimaryEmail: []
})
);
b.m("POST").h(headers).b(body);
return b.build();
}, "se_StartPrimaryEmailUpdateCommand");
var de_AcceptPrimaryEmailUpdateCommand = /* @__PURE__ */ __name(async (output, context) => {
if (output.statusCode !== 200 && output.statusCode >= 300) {
return de_CommandError(output, context);
}
const contents = (0, import_smithy_client.map)({
$metadata: deserializeMetadata(output)
});
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
const doc = (0, import_smithy_client.take)(data, {
Status: import_smithy_client.expectString
});
Object.assign(contents, doc);
return contents;
}, "de_AcceptPrimaryEmailUpdateCommand");
var de_DeleteAlternateContactCommand = /* @__PURE__ */ __name(async (output, context) => {

@@ -619,2 +704,16 @@ if (output.statusCode !== 200 && output.statusCode >= 300) {

}, "de_GetContactInformationCommand");
var de_GetPrimaryEmailCommand = /* @__PURE__ */ __name(async (output, context) => {
if (output.statusCode !== 200 && output.statusCode >= 300) {
return de_CommandError(output, context);
}
const contents = (0, import_smithy_client.map)({
$metadata: deserializeMetadata(output)
});
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
const doc = (0, import_smithy_client.take)(data, {
PrimaryEmail: import_smithy_client.expectString
});
Object.assign(contents, doc);
return contents;
}, "de_GetPrimaryEmailCommand");
var de_GetRegionOptStatusCommand = /* @__PURE__ */ __name(async (output, context) => {

@@ -670,2 +769,16 @@ if (output.statusCode !== 200 && output.statusCode >= 300) {

}, "de_PutContactInformationCommand");
var de_StartPrimaryEmailUpdateCommand = /* @__PURE__ */ __name(async (output, context) => {
if (output.statusCode !== 200 && output.statusCode >= 300) {
return de_CommandError(output, context);
}
const contents = (0, import_smithy_client.map)({
$metadata: deserializeMetadata(output)
});
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
const doc = (0, import_smithy_client.take)(data, {
Status: import_smithy_client.expectString
});
Object.assign(contents, doc);
return contents;
}, "de_StartPrimaryEmailUpdateCommand");
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {

@@ -681,2 +794,5 @@ const parsedOutput = {

throw await de_AccessDeniedExceptionRes(parsedOutput, context);
case "ConflictException":
case "com.amazonaws.account#ConflictException":
throw await de_ConflictExceptionRes(parsedOutput, context);
case "InternalServerException":

@@ -694,5 +810,2 @@ case "com.amazonaws.account#InternalServerException":

throw await de_ValidationExceptionRes(parsedOutput, context);
case "ConflictException":
case "com.amazonaws.account#ConflictException":
throw await de_ConflictExceptionRes(parsedOutput, context);
default:

@@ -795,3 +908,19 @@ const parsedBody = parsedOutput.body;

// src/commands/AcceptPrimaryEmailUpdateCommand.ts
var _AcceptPrimaryEmailUpdateCommand = class _AcceptPrimaryEmailUpdateCommand extends import_smithy_client.Command.classBuilder().ep({
...commonParams
}).m(function(Command, cs, config, o) {
return [
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
];
}).s("Account", "AcceptPrimaryEmailUpdate", {}).n("AccountClient", "AcceptPrimaryEmailUpdateCommand").f(AcceptPrimaryEmailUpdateRequestFilterSensitiveLog, void 0).ser(se_AcceptPrimaryEmailUpdateCommand).de(de_AcceptPrimaryEmailUpdateCommand).build() {
};
__name(_AcceptPrimaryEmailUpdateCommand, "AcceptPrimaryEmailUpdateCommand");
var AcceptPrimaryEmailUpdateCommand = _AcceptPrimaryEmailUpdateCommand;
// src/commands/DeleteAlternateContactCommand.ts
var _DeleteAlternateContactCommand = class _DeleteAlternateContactCommand extends import_smithy_client.Command.classBuilder().ep({

@@ -813,3 +942,2 @@ ...commonParams

var _DisableRegionCommand = class _DisableRegionCommand extends import_smithy_client.Command.classBuilder().ep({

@@ -831,3 +959,2 @@ ...commonParams

var _EnableRegionCommand = class _EnableRegionCommand extends import_smithy_client.Command.classBuilder().ep({

@@ -849,3 +976,2 @@ ...commonParams

var _GetAlternateContactCommand = class _GetAlternateContactCommand extends import_smithy_client.Command.classBuilder().ep({

@@ -867,3 +993,2 @@ ...commonParams

var _GetContactInformationCommand = class _GetContactInformationCommand extends import_smithy_client.Command.classBuilder().ep({

@@ -881,2 +1006,18 @@ ...commonParams

// src/commands/GetPrimaryEmailCommand.ts
var _GetPrimaryEmailCommand = class _GetPrimaryEmailCommand extends import_smithy_client.Command.classBuilder().ep({
...commonParams
}).m(function(Command, cs, config, o) {
return [
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
];
}).s("Account", "GetPrimaryEmail", {}).n("AccountClient", "GetPrimaryEmailCommand").f(void 0, GetPrimaryEmailResponseFilterSensitiveLog).ser(se_GetPrimaryEmailCommand).de(de_GetPrimaryEmailCommand).build() {
};
__name(_GetPrimaryEmailCommand, "GetPrimaryEmailCommand");
var GetPrimaryEmailCommand = _GetPrimaryEmailCommand;
// src/commands/GetRegionOptStatusCommand.ts

@@ -886,3 +1027,2 @@

var _GetRegionOptStatusCommand = class _GetRegionOptStatusCommand extends import_smithy_client.Command.classBuilder().ep({

@@ -904,3 +1044,2 @@ ...commonParams

var _ListRegionsCommand = class _ListRegionsCommand extends import_smithy_client.Command.classBuilder().ep({

@@ -922,3 +1061,2 @@ ...commonParams

var _PutAlternateContactCommand = class _PutAlternateContactCommand extends import_smithy_client.Command.classBuilder().ep({

@@ -940,3 +1078,2 @@ ...commonParams

var _PutContactInformationCommand = class _PutContactInformationCommand extends import_smithy_client.Command.classBuilder().ep({

@@ -954,4 +1091,21 @@ ...commonParams

// src/commands/StartPrimaryEmailUpdateCommand.ts
var _StartPrimaryEmailUpdateCommand = class _StartPrimaryEmailUpdateCommand extends import_smithy_client.Command.classBuilder().ep({
...commonParams
}).m(function(Command, cs, config, o) {
return [
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
];
}).s("Account", "StartPrimaryEmailUpdate", {}).n("AccountClient", "StartPrimaryEmailUpdateCommand").f(StartPrimaryEmailUpdateRequestFilterSensitiveLog, void 0).ser(se_StartPrimaryEmailUpdateCommand).de(de_StartPrimaryEmailUpdateCommand).build() {
};
__name(_StartPrimaryEmailUpdateCommand, "StartPrimaryEmailUpdateCommand");
var StartPrimaryEmailUpdateCommand = _StartPrimaryEmailUpdateCommand;
// src/Account.ts
var commands = {
AcceptPrimaryEmailUpdateCommand,
DeleteAlternateContactCommand,

@@ -962,6 +1116,8 @@ DisableRegionCommand,

GetContactInformationCommand,
GetPrimaryEmailCommand,
GetRegionOptStatusCommand,
ListRegionsCommand,
PutAlternateContactCommand,
PutContactInformationCommand
PutContactInformationCommand,
StartPrimaryEmailUpdateCommand
};

@@ -985,2 +1141,3 @@ var _Account = class _Account extends AccountClient {

$Command,
AcceptPrimaryEmailUpdateCommand,
DeleteAlternateContactCommand,

@@ -991,2 +1148,3 @@ DisableRegionCommand,

GetContactInformationCommand,
GetPrimaryEmailCommand,
GetRegionOptStatusCommand,

@@ -996,5 +1154,7 @@ ListRegionsCommand,

PutContactInformationCommand,
StartPrimaryEmailUpdateCommand,
paginateListRegions,
PrimaryEmailUpdateStatus,
AccessDeniedException,
AlternateContactType,
ConflictException,
InternalServerException,

@@ -1005,4 +1165,5 @@ ResourceNotFoundException,

ValidationException,
ConflictException,
AlternateContactType,
RegionOptStatus,
AcceptPrimaryEmailUpdateRequestFilterSensitiveLog,
ValidationExceptionFieldFilterSensitiveLog,

@@ -1014,4 +1175,6 @@ AlternateContactFilterSensitiveLog,

GetContactInformationResponseFilterSensitiveLog,
PutContactInformationRequestFilterSensitiveLog
PutContactInformationRequestFilterSensitiveLog,
GetPrimaryEmailResponseFilterSensitiveLog,
StartPrimaryEmailUpdateRequestFilterSensitiveLog
});
import { createAggregatedClient } from "@smithy/smithy-client";
import { AccountClient } from "./AccountClient";
import { AcceptPrimaryEmailUpdateCommand, } from "./commands/AcceptPrimaryEmailUpdateCommand";
import { DeleteAlternateContactCommand, } from "./commands/DeleteAlternateContactCommand";

@@ -8,2 +9,3 @@ import { DisableRegionCommand, } from "./commands/DisableRegionCommand";

import { GetContactInformationCommand, } from "./commands/GetContactInformationCommand";
import { GetPrimaryEmailCommand, } from "./commands/GetPrimaryEmailCommand";
import { GetRegionOptStatusCommand, } from "./commands/GetRegionOptStatusCommand";

@@ -13,3 +15,5 @@ import { ListRegionsCommand } from "./commands/ListRegionsCommand";

import { PutContactInformationCommand, } from "./commands/PutContactInformationCommand";
import { StartPrimaryEmailUpdateCommand, } from "./commands/StartPrimaryEmailUpdateCommand";
const commands = {
AcceptPrimaryEmailUpdateCommand,
DeleteAlternateContactCommand,

@@ -20,2 +24,3 @@ DisableRegionCommand,

GetContactInformationCommand,
GetPrimaryEmailCommand,
GetRegionOptStatusCommand,

@@ -25,2 +30,3 @@ ListRegionsCommand,

PutContactInformationCommand,
StartPrimaryEmailUpdateCommand,
};

@@ -27,0 +33,0 @@ export class Account extends AccountClient {

@@ -0,1 +1,2 @@

export * from "./AcceptPrimaryEmailUpdateCommand";
export * from "./DeleteAlternateContactCommand";

@@ -6,2 +7,3 @@ export * from "./DisableRegionCommand";

export * from "./GetContactInformationCommand";
export * from "./GetPrimaryEmailCommand";
export * from "./GetRegionOptStatusCommand";

@@ -11,1 +13,2 @@ export * from "./ListRegionsCommand";

export * from "./PutContactInformationCommand";
export * from "./StartPrimaryEmailUpdateCommand";

51

dist-es/models/models_0.js
import { SENSITIVE_STRING } from "@smithy/smithy-client";
import { AccountServiceException as __BaseException } from "./AccountServiceException";
export const PrimaryEmailUpdateStatus = {
ACCEPTED: "ACCEPTED",
PENDING: "PENDING",
};
export class AccessDeniedException extends __BaseException {

@@ -15,7 +19,14 @@ constructor(opts) {

}
export const AlternateContactType = {
BILLING: "BILLING",
OPERATIONS: "OPERATIONS",
SECURITY: "SECURITY",
};
export class ConflictException extends __BaseException {
constructor(opts) {
super({
name: "ConflictException",
$fault: "client",
...opts,
});
this.name = "ConflictException";
this.$fault = "client";
Object.setPrototypeOf(this, ConflictException.prototype);
}
}
export class InternalServerException extends __BaseException {

@@ -79,14 +90,7 @@ constructor(opts) {

}
export class ConflictException extends __BaseException {
constructor(opts) {
super({
name: "ConflictException",
$fault: "client",
...opts,
});
this.name = "ConflictException";
this.$fault = "client";
Object.setPrototypeOf(this, ConflictException.prototype);
}
}
export const AlternateContactType = {
BILLING: "BILLING",
OPERATIONS: "OPERATIONS",
SECURITY: "SECURITY",
};
export const RegionOptStatus = {

@@ -99,2 +103,7 @@ DISABLED: "DISABLED",

};
export const AcceptPrimaryEmailUpdateRequestFilterSensitiveLog = (obj) => ({
...obj,
...(obj.PrimaryEmail && { PrimaryEmail: SENSITIVE_STRING }),
...(obj.Otp && { Otp: SENSITIVE_STRING }),
});
export const ValidationExceptionFieldFilterSensitiveLog = (obj) => ({

@@ -145,1 +154,9 @@ ...obj,

});
export const GetPrimaryEmailResponseFilterSensitiveLog = (obj) => ({
...obj,
...(obj.PrimaryEmail && { PrimaryEmail: SENSITIVE_STRING }),
});
export const StartPrimaryEmailUpdateRequestFilterSensitiveLog = (obj) => ({
...obj,
...(obj.PrimaryEmail && { PrimaryEmail: SENSITIVE_STRING }),
});

@@ -6,2 +6,17 @@ import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";

import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, TooManyRequestsException, ValidationException, } from "../models/models_0";
export const se_AcceptPrimaryEmailUpdateCommand = async (input, context) => {
const b = rb(input, context);
const headers = {
"content-type": "application/json",
};
b.bp("/acceptPrimaryEmailUpdate");
let body;
body = JSON.stringify(take(input, {
AccountId: [],
Otp: [],
PrimaryEmail: [],
}));
b.m("POST").h(headers).b(body);
return b.build();
};
export const se_DeleteAlternateContactCommand = async (input, context) => {

@@ -76,2 +91,15 @@ const b = rb(input, context);

};
export const se_GetPrimaryEmailCommand = async (input, context) => {
const b = rb(input, context);
const headers = {
"content-type": "application/json",
};
b.bp("/getPrimaryEmail");
let body;
body = JSON.stringify(take(input, {
AccountId: [],
}));
b.m("POST").h(headers).b(body);
return b.build();
};
export const se_GetRegionOptStatusCommand = async (input, context) => {

@@ -139,2 +167,30 @@ const b = rb(input, context);

};
export const se_StartPrimaryEmailUpdateCommand = async (input, context) => {
const b = rb(input, context);
const headers = {
"content-type": "application/json",
};
b.bp("/startPrimaryEmailUpdate");
let body;
body = JSON.stringify(take(input, {
AccountId: [],
PrimaryEmail: [],
}));
b.m("POST").h(headers).b(body);
return b.build();
};
export const de_AcceptPrimaryEmailUpdateCommand = async (output, context) => {
if (output.statusCode !== 200 && output.statusCode >= 300) {
return de_CommandError(output, context);
}
const contents = map({
$metadata: deserializeMetadata(output),
});
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
const doc = take(data, {
Status: __expectString,
});
Object.assign(contents, doc);
return contents;
};
export const de_DeleteAlternateContactCommand = async (output, context) => {

@@ -198,2 +254,16 @@ if (output.statusCode !== 200 && output.statusCode >= 300) {

};
export const de_GetPrimaryEmailCommand = async (output, context) => {
if (output.statusCode !== 200 && output.statusCode >= 300) {
return de_CommandError(output, context);
}
const contents = map({
$metadata: deserializeMetadata(output),
});
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
const doc = take(data, {
PrimaryEmail: __expectString,
});
Object.assign(contents, doc);
return contents;
};
export const de_GetRegionOptStatusCommand = async (output, context) => {

@@ -249,2 +319,16 @@ if (output.statusCode !== 200 && output.statusCode >= 300) {

};
export const de_StartPrimaryEmailUpdateCommand = async (output, context) => {
if (output.statusCode !== 200 && output.statusCode >= 300) {
return de_CommandError(output, context);
}
const contents = map({
$metadata: deserializeMetadata(output),
});
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
const doc = take(data, {
Status: __expectString,
});
Object.assign(contents, doc);
return contents;
};
const de_CommandError = async (output, context) => {

@@ -260,2 +344,5 @@ const parsedOutput = {

throw await de_AccessDeniedExceptionRes(parsedOutput, context);
case "ConflictException":
case "com.amazonaws.account#ConflictException":
throw await de_ConflictExceptionRes(parsedOutput, context);
case "InternalServerException":

@@ -273,5 +360,2 @@ case "com.amazonaws.account#InternalServerException":

throw await de_ValidationExceptionRes(parsedOutput, context);
case "ConflictException":
case "com.amazonaws.account#ConflictException":
throw await de_ConflictExceptionRes(parsedOutput, context);
default:

@@ -278,0 +362,0 @@ const parsedBody = parsedOutput.body;

import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
import { AccountClient } from "./AccountClient";
import { AcceptPrimaryEmailUpdateCommandInput, AcceptPrimaryEmailUpdateCommandOutput } from "./commands/AcceptPrimaryEmailUpdateCommand";
import { DeleteAlternateContactCommandInput, DeleteAlternateContactCommandOutput } from "./commands/DeleteAlternateContactCommand";

@@ -8,2 +9,3 @@ import { DisableRegionCommandInput, DisableRegionCommandOutput } from "./commands/DisableRegionCommand";

import { GetContactInformationCommandInput, GetContactInformationCommandOutput } from "./commands/GetContactInformationCommand";
import { GetPrimaryEmailCommandInput, GetPrimaryEmailCommandOutput } from "./commands/GetPrimaryEmailCommand";
import { GetRegionOptStatusCommandInput, GetRegionOptStatusCommandOutput } from "./commands/GetRegionOptStatusCommand";

@@ -13,4 +15,11 @@ import { ListRegionsCommandInput, ListRegionsCommandOutput } from "./commands/ListRegionsCommand";

import { PutContactInformationCommandInput, PutContactInformationCommandOutput } from "./commands/PutContactInformationCommand";
import { StartPrimaryEmailUpdateCommandInput, StartPrimaryEmailUpdateCommandOutput } from "./commands/StartPrimaryEmailUpdateCommand";
export interface Account {
/**
* @see {@link AcceptPrimaryEmailUpdateCommand}
*/
acceptPrimaryEmailUpdate(args: AcceptPrimaryEmailUpdateCommandInput, options?: __HttpHandlerOptions): Promise<AcceptPrimaryEmailUpdateCommandOutput>;
acceptPrimaryEmailUpdate(args: AcceptPrimaryEmailUpdateCommandInput, cb: (err: any, data?: AcceptPrimaryEmailUpdateCommandOutput) => void): void;
acceptPrimaryEmailUpdate(args: AcceptPrimaryEmailUpdateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AcceptPrimaryEmailUpdateCommandOutput) => void): void;
/**
* @see {@link DeleteAlternateContactCommand}

@@ -47,2 +56,8 @@ */

/**
* @see {@link GetPrimaryEmailCommand}
*/
getPrimaryEmail(args: GetPrimaryEmailCommandInput, options?: __HttpHandlerOptions): Promise<GetPrimaryEmailCommandOutput>;
getPrimaryEmail(args: GetPrimaryEmailCommandInput, cb: (err: any, data?: GetPrimaryEmailCommandOutput) => void): void;
getPrimaryEmail(args: GetPrimaryEmailCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPrimaryEmailCommandOutput) => void): void;
/**
* @see {@link GetRegionOptStatusCommand}

@@ -72,2 +87,8 @@ */

putContactInformation(args: PutContactInformationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutContactInformationCommandOutput) => void): void;
/**
* @see {@link StartPrimaryEmailUpdateCommand}
*/
startPrimaryEmailUpdate(args: StartPrimaryEmailUpdateCommandInput, options?: __HttpHandlerOptions): Promise<StartPrimaryEmailUpdateCommandOutput>;
startPrimaryEmailUpdate(args: StartPrimaryEmailUpdateCommandInput, cb: (err: any, data?: StartPrimaryEmailUpdateCommandOutput) => void): void;
startPrimaryEmailUpdate(args: StartPrimaryEmailUpdateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartPrimaryEmailUpdateCommandOutput) => void): void;
}

@@ -74,0 +95,0 @@ /**

@@ -10,2 +10,3 @@ import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";

import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
import { AcceptPrimaryEmailUpdateCommandInput, AcceptPrimaryEmailUpdateCommandOutput } from "./commands/AcceptPrimaryEmailUpdateCommand";
import { DeleteAlternateContactCommandInput, DeleteAlternateContactCommandOutput } from "./commands/DeleteAlternateContactCommand";

@@ -16,2 +17,3 @@ import { DisableRegionCommandInput, DisableRegionCommandOutput } from "./commands/DisableRegionCommand";

import { GetContactInformationCommandInput, GetContactInformationCommandOutput } from "./commands/GetContactInformationCommand";
import { GetPrimaryEmailCommandInput, GetPrimaryEmailCommandOutput } from "./commands/GetPrimaryEmailCommand";
import { GetRegionOptStatusCommandInput, GetRegionOptStatusCommandOutput } from "./commands/GetRegionOptStatusCommand";

@@ -21,2 +23,3 @@ import { ListRegionsCommandInput, ListRegionsCommandOutput } from "./commands/ListRegionsCommand";

import { PutContactInformationCommandInput, PutContactInformationCommandOutput } from "./commands/PutContactInformationCommand";
import { StartPrimaryEmailUpdateCommandInput, StartPrimaryEmailUpdateCommandOutput } from "./commands/StartPrimaryEmailUpdateCommand";
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";

@@ -28,7 +31,7 @@ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";

*/
export type ServiceInputTypes = DeleteAlternateContactCommandInput | DisableRegionCommandInput | EnableRegionCommandInput | GetAlternateContactCommandInput | GetContactInformationCommandInput | GetRegionOptStatusCommandInput | ListRegionsCommandInput | PutAlternateContactCommandInput | PutContactInformationCommandInput;
export type ServiceInputTypes = AcceptPrimaryEmailUpdateCommandInput | DeleteAlternateContactCommandInput | DisableRegionCommandInput | EnableRegionCommandInput | GetAlternateContactCommandInput | GetContactInformationCommandInput | GetPrimaryEmailCommandInput | GetRegionOptStatusCommandInput | ListRegionsCommandInput | PutAlternateContactCommandInput | PutContactInformationCommandInput | StartPrimaryEmailUpdateCommandInput;
/**
* @public
*/
export type ServiceOutputTypes = DeleteAlternateContactCommandOutput | DisableRegionCommandOutput | EnableRegionCommandOutput | GetAlternateContactCommandOutput | GetContactInformationCommandOutput | GetRegionOptStatusCommandOutput | ListRegionsCommandOutput | PutAlternateContactCommandOutput | PutContactInformationCommandOutput;
export type ServiceOutputTypes = AcceptPrimaryEmailUpdateCommandOutput | DeleteAlternateContactCommandOutput | DisableRegionCommandOutput | EnableRegionCommandOutput | GetAlternateContactCommandOutput | GetContactInformationCommandOutput | GetPrimaryEmailCommandOutput | GetRegionOptStatusCommandOutput | ListRegionsCommandOutput | PutAlternateContactCommandOutput | PutContactInformationCommandOutput | StartPrimaryEmailUpdateCommandOutput;
/**

@@ -35,0 +38,0 @@ * @public

@@ -8,3 +8,4 @@ import { Command as $Command } from "@smithy/smithy-client";

*/
export { __MetadataBearer, $Command };
export type { __MetadataBearer };
export { $Command };
/**

@@ -11,0 +12,0 @@ * @public

@@ -8,3 +8,4 @@ import { Command as $Command } from "@smithy/smithy-client";

*/
export { __MetadataBearer, $Command };
export type { __MetadataBearer };
export { $Command };
/**

@@ -31,2 +32,6 @@ * @public

* <p>Disables (opts-out) a particular Region for an account.</p>
* <note>
* <p>The act of disabling a Region will remove all IAM access to any resources that
* reside in that Region.</p>
* </note>
* @example

@@ -33,0 +38,0 @@ * Use a bare-bones client and the command you need to make an API call.

@@ -8,3 +8,4 @@ import { Command as $Command } from "@smithy/smithy-client";

*/
export { __MetadataBearer, $Command };
export type { __MetadataBearer };
export { $Command };
/**

@@ -11,0 +12,0 @@ * @public

@@ -8,3 +8,4 @@ import { Command as $Command } from "@smithy/smithy-client";

*/
export { __MetadataBearer, $Command };
export type { __MetadataBearer };
export { $Command };
/**

@@ -11,0 +12,0 @@ * @public

@@ -8,3 +8,4 @@ import { Command as $Command } from "@smithy/smithy-client";

*/
export { __MetadataBearer, $Command };
export type { __MetadataBearer };
export { $Command };
/**

@@ -11,0 +12,0 @@ * @public

@@ -8,3 +8,4 @@ import { Command as $Command } from "@smithy/smithy-client";

*/
export { __MetadataBearer, $Command };
export type { __MetadataBearer };
export { $Command };
/**

@@ -11,0 +12,0 @@ * @public

@@ -0,1 +1,2 @@

export * from "./AcceptPrimaryEmailUpdateCommand";
export * from "./DeleteAlternateContactCommand";

@@ -6,2 +7,3 @@ export * from "./DisableRegionCommand";

export * from "./GetContactInformationCommand";
export * from "./GetPrimaryEmailCommand";
export * from "./GetRegionOptStatusCommand";

@@ -11,1 +13,2 @@ export * from "./ListRegionsCommand";

export * from "./PutContactInformationCommand";
export * from "./StartPrimaryEmailUpdateCommand";

@@ -8,3 +8,4 @@ import { Command as $Command } from "@smithy/smithy-client";

*/
export { __MetadataBearer, $Command };
export type { __MetadataBearer };
export { $Command };
/**

@@ -11,0 +12,0 @@ * @public

@@ -8,3 +8,4 @@ import { Command as $Command } from "@smithy/smithy-client";

*/
export { __MetadataBearer, $Command };
export type { __MetadataBearer };
export { $Command };
/**

@@ -11,0 +12,0 @@ * @public

@@ -8,3 +8,4 @@ import { Command as $Command } from "@smithy/smithy-client";

*/
export { __MetadataBearer, $Command };
export type { __MetadataBearer };
export { $Command };
/**

@@ -32,3 +33,3 @@ * @public

* <p>For complete details about how to use the primary contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Update
* the primary and alternate contact information</a>.</p>
* the primary and alternate contact information</a>.</p>
* @example

@@ -35,0 +36,0 @@ * Use a bare-bones client and the command you need to make an API call.

@@ -9,4 +9,4 @@ /**

export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
export { RuntimeExtension } from "./runtimeExtensions";
export { AccountExtensionConfiguration } from "./extensionConfiguration";
export type { RuntimeExtension } from "./runtimeExtensions";
export type { AccountExtensionConfiguration } from "./extensionConfiguration";
export * from "./commands";

@@ -13,0 +13,0 @@ export * from "./pagination";

import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@smithy/smithy-client";
export { __ServiceException, __ServiceExceptionOptions };
export type { __ServiceExceptionOptions };
export { __ServiceException };
/**

@@ -4,0 +5,0 @@ * @public

import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
import { AccountServiceException as __BaseException } from "./AccountServiceException";
/**
* <p>The operation failed because the calling identity doesn't have the minimum required
* permissions.</p>
* @public
*/
export declare class AccessDeniedException extends __BaseException {
readonly name: "AccessDeniedException";
readonly $fault: "client";
export interface AcceptPrimaryEmailUpdateRequest {
/**
* @internal
* <p>Specifies the 12-digit account ID number of the Amazon Web Services account that you want to access
* or modify with this operation. To use this parameter, the caller must be an identity in
* the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's
* management account</a> or a delegated administrator account. The specified
* account ID must be a member account in the same organization. The organization must have
* <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all features
* enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html">trusted access</a> enabled
* for the Account Management service, and optionally a <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html">delegated admin</a> account
* assigned.</p>
* <p>This operation can only be called from the management account or the delegated
* administrator account of an organization for a member account.</p>
* <note>
* <p>The management account can't specify its own <code>AccountId</code>.</p>
* </note>
* @public
*/
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
AccountId: string | undefined;
/**
* <p>The new primary email address for use with the specified account. This must
* match the <code>PrimaryEmail</code> from the <code>StartPrimaryEmailUpdate</code> API
* call.</p>
* @public
*/
PrimaryEmail: string | undefined;
/**
* <p>The OTP code sent to the <code>PrimaryEmail</code> specified on the
* <code>StartPrimaryEmailUpdate</code> API call.</p>
* @public
*/
Otp: string | undefined;
}

@@ -20,6 +43,5 @@ /**

*/
export declare const AlternateContactType: {
readonly BILLING: "BILLING";
readonly OPERATIONS: "OPERATIONS";
readonly SECURITY: "SECURITY";
export declare const PrimaryEmailUpdateStatus: {
readonly ACCEPTED: "ACCEPTED";
readonly PENDING: "PENDING";
};

@@ -29,36 +51,41 @@ /**

*/
export type AlternateContactType = (typeof AlternateContactType)[keyof typeof AlternateContactType];
export type PrimaryEmailUpdateStatus = (typeof PrimaryEmailUpdateStatus)[keyof typeof PrimaryEmailUpdateStatus];
/**
* @public
*/
export interface DeleteAlternateContactRequest {
export interface AcceptPrimaryEmailUpdateResponse {
/**
* <p>Specifies which of the alternate contacts to delete. </p>
* <p>Retrieves the status of the accepted primary email update request.</p>
* @public
*/
AlternateContactType: AlternateContactType | undefined;
Status?: PrimaryEmailUpdateStatus;
}
/**
* <p>The operation failed because the calling identity doesn't have the minimum required
* permissions.</p>
* @public
*/
export declare class AccessDeniedException extends __BaseException {
readonly name: "AccessDeniedException";
readonly $fault: "client";
/**
* <p>Specifies the 12 digit account ID number of the Amazon Web Services account that
* you want to access or modify with this operation.</p>
* <p>If you do not specify this parameter, it defaults to the Amazon Web Services account of the
* identity used to call the operation.</p>
* <p>To use this parameter, the caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's management account</a> or a delegated administrator account, and
* the specified account ID must be a member account in the same organization. The
* organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all features
* enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html">trusted access</a> enabled for the
* Account Management service, and optionally a <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html">delegated admin</a> account
* assigned.</p>
* <note>
* <p>The management account can't specify its own <code>AccountId</code>; it must call
* the operation in standalone context by not including the <code>AccountId</code>
* parameter.</p>
* </note>
* <p>To call this operation on an account that is not a member of an organization, then
* don't specify this parameter, and call the operation using an identity belonging to
* the account whose contacts you wish to retrieve or modify.</p>
* @public
* @internal
*/
AccountId?: string;
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
}
/**
* <p>The request could not be processed because of a conflict in the current status of the
* resource. For example, this happens if you try to enable a Region that is currently being disabled
* (in a status of DISABLING).</p>
* @public
*/
export declare class ConflictException extends __BaseException {
readonly name: "ConflictException";
readonly $fault: "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
}
/**
* <p>The operation failed because of an error internal to Amazon Web Services. Try your operation again

@@ -157,3 +184,48 @@ * later.</p>

* @public
* @enum
*/
export declare const AlternateContactType: {
readonly BILLING: "BILLING";
readonly OPERATIONS: "OPERATIONS";
readonly SECURITY: "SECURITY";
};
/**
* @public
*/
export type AlternateContactType = (typeof AlternateContactType)[keyof typeof AlternateContactType];
/**
* @public
*/
export interface DeleteAlternateContactRequest {
/**
* <p>Specifies which of the alternate contacts to delete. </p>
* @public
*/
AlternateContactType: AlternateContactType | undefined;
/**
* <p>Specifies the 12 digit account ID number of the Amazon Web Services account that
* you want to access or modify with this operation.</p>
* <p>If you do not specify this parameter, it defaults to the Amazon Web Services account of the
* identity used to call the operation.</p>
* <p>To use this parameter, the caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's management account</a> or a delegated administrator account, and
* the specified account ID must be a member account in the same organization. The
* organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all features
* enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html">trusted access</a> enabled for the
* Account Management service, and optionally a <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html">delegated admin</a> account
* assigned.</p>
* <note>
* <p>The management account can't specify its own <code>AccountId</code>; it must call
* the operation in standalone context by not including the <code>AccountId</code>
* parameter.</p>
* </note>
* <p>To call this operation on an account that is not a member of an organization, then
* don't specify this parameter, and call the operation using an identity belonging to
* the account whose contacts you wish to retrieve or modify.</p>
* @public
*/
AccountId?: string;
}
/**
* @public
*/
export interface GetAlternateContactRequest {

@@ -289,6 +361,6 @@ /**

* or modify with this operation. If you don't specify this parameter, it defaults to the
* Amazon Web Services account of the identity used to call the operation. To use this parameter, the
* caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's
* Amazon Web Services account of the identity used to call the operation. To use this
* parameter, the caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's
* management account</a> or a delegated administrator account. The specified
* account ID must also be a member account in the same organization. The organization must have
* account ID must be a member account in the same organization. The organization must have
* <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all features

@@ -304,4 +376,4 @@ * enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html">trusted access</a> enabled

* <p>To call this operation on an account that is not a member of an organization, don't
* specify this parameter. Instead, call the operation using an identity belonging to
* the account whose contacts you wish to retrieve or modify.</p>
* specify this parameter. Instead, call the operation using an identity belonging to the
* account whose contacts you wish to retrieve or modify.</p>
* @public

@@ -312,3 +384,4 @@ */

/**
* <p>Contains the details of the primary contact information associated with an Amazon Web Services account.</p>
* <p>Contains the details of the primary contact information associated with an
* Amazon Web Services account.</p>
* @public

@@ -343,3 +416,7 @@ */

/**
* <p>The state or region of the primary contact address. This field is required in selected countries.</p>
* <p>The state or region of the primary contact address. If the mailing address is within the United States (US), the
* value in this field can be either a two character state code (for example, <code>NJ</code>) or the full state name
* (for example, <code>New Jersey</code>). This field is required in the following countries: <code>US</code>,
* <code>CA</code>, <code>GB</code>, <code>DE</code>, <code>JP</code>, <code>IN</code>,
* and <code>BR</code>.</p>
* @public

@@ -364,3 +441,4 @@ */

/**
* <p>The phone number of the primary contact information. The number will be validated and, in some countries, checked for activation.</p>
* <p>The phone number of the primary contact information. The number will be validated and,
* in some countries, checked for activation.</p>
* @public

@@ -370,3 +448,4 @@ */

/**
* <p>The name of the company associated with the primary contact information, if any.</p>
* <p>The name of the company associated with the primary contact information, if
* any.</p>
* @public

@@ -386,3 +465,4 @@ */

/**
* <p>Contains the details of the primary contact information associated with an Amazon Web Services account.</p>
* <p>Contains the details of the primary contact information associated with an
* Amazon Web Services account.</p>
* @public

@@ -397,3 +477,4 @@ */

/**
* <p>Contains the details of the primary contact information associated with an Amazon Web Services account.</p>
* <p>Contains the details of the primary contact information associated with an
* Amazon Web Services account.</p>
* @public

@@ -405,7 +486,7 @@ */

* or modify with this operation. If you don't specify this parameter, it defaults to the
* Amazon Web Services account of the identity used to call the operation. To use this parameter, the
* caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's
* Amazon Web Services account of the identity used to call the operation. To use this
* parameter, the caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's
* management account</a> or a delegated administrator account. The specified
* account ID must also be a member account in the same organization. The organization must have
* <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all features
* account ID must be a member account in the same organization. The organization must have
* <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all features
* enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html">trusted access</a> enabled

@@ -420,4 +501,4 @@ * for the Account Management service, and optionally a <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html">delegated admin</a> account

* <p>To call this operation on an account that is not a member of an organization, don't
* specify this parameter. Instead, call the operation using an identity belonging to
* the account whose contacts you wish to retrieve or modify.</p>
* specify this parameter. Instead, call the operation using an identity belonging to the
* account whose contacts you wish to retrieve or modify.</p>
* @public

@@ -428,14 +509,23 @@ */

/**
* <p>The request could not be processed because of a conflict in the current status of the
* resource. For example, this happens if you try to enable a Region that is currently being disabled
* (in a status of DISABLING).</p>
* @public
*/
export declare class ConflictException extends __BaseException {
readonly name: "ConflictException";
readonly $fault: "client";
export interface GetPrimaryEmailRequest {
/**
* @internal
* <p>Specifies the 12-digit account ID number of the Amazon Web Services account that you want to access
* or modify with this operation. To use this parameter, the caller must be an identity in
* the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's
* management account</a> or a delegated administrator account. The specified
* account ID must be a member account in the same organization. The organization must have
* <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all features
* enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html">trusted access</a> enabled
* for the Account Management service, and optionally a <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html">delegated admin</a> account
* assigned.</p>
* <p>This operation can only be called from the management account or the delegated
* administrator account of an organization for a member account.</p>
* <note>
* <p>The management account can't specify its own <code>AccountId</code>.</p>
* </note>
* @public
*/
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
AccountId: string | undefined;
}

@@ -445,2 +535,52 @@ /**

*/
export interface GetPrimaryEmailResponse {
/**
* <p>Retrieves the primary email address associated with the specified
* account.</p>
* @public
*/
PrimaryEmail?: string;
}
/**
* @public
*/
export interface StartPrimaryEmailUpdateRequest {
/**
* <p>Specifies the 12-digit account ID number of the Amazon Web Services account that you want to access
* or modify with this operation. To use this parameter, the caller must be an identity in
* the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's
* management account</a> or a delegated administrator account. The specified
* account ID must be a member account in the same organization. The organization must have
* <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all features
* enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html">trusted access</a> enabled
* for the Account Management service, and optionally a <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html">delegated admin</a> account
* assigned.</p>
* <p>This operation can only be called from the management account or the delegated
* administrator account of an organization for a member account.</p>
* <note>
* <p>The management account can't specify its own <code>AccountId</code>.</p>
* </note>
* @public
*/
AccountId: string | undefined;
/**
* <p>The new primary email address (also known as the root user email address) to
* use in the specified account.</p>
* @public
*/
PrimaryEmail: string | undefined;
}
/**
* @public
*/
export interface StartPrimaryEmailUpdateResponse {
/**
* <p>The status of the primary email update request.</p>
* @public
*/
Status?: PrimaryEmailUpdateStatus;
}
/**
* @public
*/
export interface DisableRegionRequest {

@@ -450,7 +590,7 @@ /**

* or modify with this operation. If you don't specify this parameter, it defaults to the
* Amazon Web Services account of the identity used to call the operation. To use this parameter, the
* caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's
* Amazon Web Services account of the identity used to call the operation. To use this
* parameter, the caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's
* management account</a> or a delegated administrator account. The specified
* account ID must also be a member account in the same organization. The organization must
* have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all features
* account ID must be a member account in the same organization. The organization must have
* <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all features
* enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html">trusted access</a> enabled

@@ -471,7 +611,7 @@ * for the Account Management service, and optionally a <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html">delegated admin</a> account

/**
* <p>Specifies the Region-code for a given Region name (for example, <code>af-south-1</code>). When
* you disable a Region, Amazon Web Services performs actions to deactivate that Region in your account, such
* as destroying IAM resources in the Region. This process takes a few minutes for most
* accounts, but this can take several hours. You cannot enable the Region until the
* disabling process is fully completed.</p>
* <p>Specifies the Region-code for a given Region name (for example,
* <code>af-south-1</code>). When you disable a Region, Amazon Web Services performs actions to
* deactivate that Region in your account, such as destroying IAM resources in the Region.
* This process takes a few minutes for most accounts, but this can take several hours. You
* cannot enable the Region until the disabling process is fully completed.</p>
* @public

@@ -488,7 +628,7 @@ */

* or modify with this operation. If you don't specify this parameter, it defaults to the
* Amazon Web Services account of the identity used to call the operation. To use this parameter, the
* caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's
* Amazon Web Services account of the identity used to call the operation. To use this
* parameter, the caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's
* management account</a> or a delegated administrator account. The specified
* account ID must also be a member account in the same organization. The organization must
* have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all features
* account ID must be a member account in the same organization. The organization must have
* <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all features
* enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html">trusted access</a> enabled

@@ -509,8 +649,8 @@ * for the Account Management service, and optionally a <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html">delegated admin</a> account

/**
* <p>Specifies the Region-code for a given Region name (for example, <code>af-south-1</code>). When
* you enable a Region, Amazon Web Services performs actions to prepare your account in that Region, such
* as distributing your IAM resources to the Region. This process takes a few minutes for
* most accounts, but it can take several hours. You cannot use the Region until this
* process is complete. Furthermore, you cannot disable the Region until the enabling
* process is fully completed.</p>
* <p>Specifies the Region-code for a given Region name (for example,
* <code>af-south-1</code>). When you enable a Region, Amazon Web Services performs actions to
* prepare your account in that Region, such as distributing your IAM resources to the
* Region. This process takes a few minutes for most accounts, but it can take several
* hours. You cannot use the Region until this process is complete. Furthermore, you cannot
* disable the Region until the enabling process is fully completed.</p>
* @public

@@ -527,7 +667,7 @@ */

* or modify with this operation. If you don't specify this parameter, it defaults to the
* Amazon Web Services account of the identity used to call the operation. To use this parameter, the
* caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's
* Amazon Web Services account of the identity used to call the operation. To use this
* parameter, the caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's
* management account</a> or a delegated administrator account. The specified
* account ID must also be a member account in the same organization. The organization must
* have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all features
* account ID must be a member account in the same organization. The organization must have
* <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all features
* enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html">trusted access</a> enabled

@@ -548,4 +688,5 @@ * for the Account Management service, and optionally a <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html">delegated admin</a> account

/**
* <p>Specifies the Region-code for a given Region name (for example, <code>af-south-1</code>). This
* function will return the status of whatever Region you pass into this parameter. </p>
* <p>Specifies the Region-code for a given Region name (for example,
* <code>af-south-1</code>). This function will return the status of whatever Region
* you pass into this parameter. </p>
* @public

@@ -593,7 +734,7 @@ */

* or modify with this operation. If you don't specify this parameter, it defaults to the
* Amazon Web Services account of the identity used to call the operation. To use this parameter, the
* caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's
* Amazon Web Services account of the identity used to call the operation. To use this
* parameter, the caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's
* management account</a> or a delegated administrator account. The specified
* account ID must also be a member account in the same organization. The organization must
* have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all features
* account ID must be a member account in the same organization. The organization must have
* <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all features
* enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html">trusted access</a> enabled

@@ -652,4 +793,4 @@ * for the Account Management service, and optionally a <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html">delegated admin</a> account

/**
* <p>One of potential statuses a Region can undergo (Enabled, Enabling, Disabled, Disabling,
* Enabled_By_Default).</p>
* <p>One of potential statuses a Region can undergo (Enabled, Enabling, Disabled,
* Disabling, Enabled_By_Default).</p>
* @public

@@ -680,2 +821,6 @@ */

*/
export declare const AcceptPrimaryEmailUpdateRequestFilterSensitiveLog: (obj: AcceptPrimaryEmailUpdateRequest) => any;
/**
* @internal
*/
export declare const ValidationExceptionFieldFilterSensitiveLog: (obj: ValidationExceptionField) => any;

@@ -706,1 +851,9 @@ /**

export declare const PutContactInformationRequestFilterSensitiveLog: (obj: PutContactInformationRequest) => any;
/**
* @internal
*/
export declare const GetPrimaryEmailResponseFilterSensitiveLog: (obj: GetPrimaryEmailResponse) => any;
/**
* @internal
*/
export declare const StartPrimaryEmailUpdateRequestFilterSensitiveLog: (obj: StartPrimaryEmailUpdateRequest) => any;
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
import { SerdeContext as __SerdeContext } from "@smithy/types";
import { AcceptPrimaryEmailUpdateCommandInput, AcceptPrimaryEmailUpdateCommandOutput } from "../commands/AcceptPrimaryEmailUpdateCommand";
import { DeleteAlternateContactCommandInput, DeleteAlternateContactCommandOutput } from "../commands/DeleteAlternateContactCommand";

@@ -8,2 +9,3 @@ import { DisableRegionCommandInput, DisableRegionCommandOutput } from "../commands/DisableRegionCommand";

import { GetContactInformationCommandInput, GetContactInformationCommandOutput } from "../commands/GetContactInformationCommand";
import { GetPrimaryEmailCommandInput, GetPrimaryEmailCommandOutput } from "../commands/GetPrimaryEmailCommand";
import { GetRegionOptStatusCommandInput, GetRegionOptStatusCommandOutput } from "../commands/GetRegionOptStatusCommand";

@@ -13,3 +15,8 @@ import { ListRegionsCommandInput, ListRegionsCommandOutput } from "../commands/ListRegionsCommand";

import { PutContactInformationCommandInput, PutContactInformationCommandOutput } from "../commands/PutContactInformationCommand";
import { StartPrimaryEmailUpdateCommandInput, StartPrimaryEmailUpdateCommandOutput } from "../commands/StartPrimaryEmailUpdateCommand";
/**
* serializeAws_restJson1AcceptPrimaryEmailUpdateCommand
*/
export declare const se_AcceptPrimaryEmailUpdateCommand: (input: AcceptPrimaryEmailUpdateCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
/**
* serializeAws_restJson1DeleteAlternateContactCommand

@@ -35,2 +42,6 @@ */

/**
* serializeAws_restJson1GetPrimaryEmailCommand
*/
export declare const se_GetPrimaryEmailCommand: (input: GetPrimaryEmailCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
/**
* serializeAws_restJson1GetRegionOptStatusCommand

@@ -52,2 +63,10 @@ */

/**
* serializeAws_restJson1StartPrimaryEmailUpdateCommand
*/
export declare const se_StartPrimaryEmailUpdateCommand: (input: StartPrimaryEmailUpdateCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
/**
* deserializeAws_restJson1AcceptPrimaryEmailUpdateCommand
*/
export declare const de_AcceptPrimaryEmailUpdateCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<AcceptPrimaryEmailUpdateCommandOutput>;
/**
* deserializeAws_restJson1DeleteAlternateContactCommand

@@ -73,2 +92,6 @@ */

/**
* deserializeAws_restJson1GetPrimaryEmailCommand
*/
export declare const de_GetPrimaryEmailCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetPrimaryEmailCommandOutput>;
/**
* deserializeAws_restJson1GetRegionOptStatusCommand

@@ -89,1 +112,5 @@ */

export declare const de_PutContactInformationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutContactInformationCommandOutput>;
/**
* deserializeAws_restJson1StartPrimaryEmailUpdateCommand
*/
export declare const de_StartPrimaryEmailUpdateCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartPrimaryEmailUpdateCommandOutput>;
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
import { AccountClient } from "./AccountClient";
import {
AcceptPrimaryEmailUpdateCommandInput,
AcceptPrimaryEmailUpdateCommandOutput,
} from "./commands/AcceptPrimaryEmailUpdateCommand";
import {
DeleteAlternateContactCommandInput,

@@ -24,2 +28,6 @@ DeleteAlternateContactCommandOutput,

import {
GetPrimaryEmailCommandInput,
GetPrimaryEmailCommandOutput,
} from "./commands/GetPrimaryEmailCommand";
import {
GetRegionOptStatusCommandInput,

@@ -40,3 +48,20 @@ GetRegionOptStatusCommandOutput,

} from "./commands/PutContactInformationCommand";
import {
StartPrimaryEmailUpdateCommandInput,
StartPrimaryEmailUpdateCommandOutput,
} from "./commands/StartPrimaryEmailUpdateCommand";
export interface Account {
acceptPrimaryEmailUpdate(
args: AcceptPrimaryEmailUpdateCommandInput,
options?: __HttpHandlerOptions
): Promise<AcceptPrimaryEmailUpdateCommandOutput>;
acceptPrimaryEmailUpdate(
args: AcceptPrimaryEmailUpdateCommandInput,
cb: (err: any, data?: AcceptPrimaryEmailUpdateCommandOutput) => void
): void;
acceptPrimaryEmailUpdate(
args: AcceptPrimaryEmailUpdateCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: AcceptPrimaryEmailUpdateCommandOutput) => void
): void;
deleteAlternateContact(

@@ -108,2 +133,15 @@ args: DeleteAlternateContactCommandInput,

): void;
getPrimaryEmail(
args: GetPrimaryEmailCommandInput,
options?: __HttpHandlerOptions
): Promise<GetPrimaryEmailCommandOutput>;
getPrimaryEmail(
args: GetPrimaryEmailCommandInput,
cb: (err: any, data?: GetPrimaryEmailCommandOutput) => void
): void;
getPrimaryEmail(
args: GetPrimaryEmailCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: GetPrimaryEmailCommandOutput) => void
): void;
getRegionOptStatus(

@@ -162,3 +200,16 @@ args: GetRegionOptStatusCommandInput,

): void;
startPrimaryEmailUpdate(
args: StartPrimaryEmailUpdateCommandInput,
options?: __HttpHandlerOptions
): Promise<StartPrimaryEmailUpdateCommandOutput>;
startPrimaryEmailUpdate(
args: StartPrimaryEmailUpdateCommandInput,
cb: (err: any, data?: StartPrimaryEmailUpdateCommandOutput) => void
): void;
startPrimaryEmailUpdate(
args: StartPrimaryEmailUpdateCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: StartPrimaryEmailUpdateCommandOutput) => void
): void;
}
export declare class Account extends AccountClient implements Account {}

@@ -49,2 +49,6 @@ import {

import {
AcceptPrimaryEmailUpdateCommandInput,
AcceptPrimaryEmailUpdateCommandOutput,
} from "./commands/AcceptPrimaryEmailUpdateCommand";
import {
DeleteAlternateContactCommandInput,

@@ -70,2 +74,6 @@ DeleteAlternateContactCommandOutput,

import {
GetPrimaryEmailCommandInput,
GetPrimaryEmailCommandOutput,
} from "./commands/GetPrimaryEmailCommand";
import {
GetRegionOptStatusCommandInput,

@@ -87,2 +95,6 @@ GetRegionOptStatusCommandOutput,

import {
StartPrimaryEmailUpdateCommandInput,
StartPrimaryEmailUpdateCommandOutput,
} from "./commands/StartPrimaryEmailUpdateCommand";
import {
ClientInputEndpointParameters,

@@ -95,2 +107,3 @@ ClientResolvedEndpointParameters,

export type ServiceInputTypes =
| AcceptPrimaryEmailUpdateCommandInput
| DeleteAlternateContactCommandInput

@@ -101,7 +114,10 @@ | DisableRegionCommandInput

| GetContactInformationCommandInput
| GetPrimaryEmailCommandInput
| GetRegionOptStatusCommandInput
| ListRegionsCommandInput
| PutAlternateContactCommandInput
| PutContactInformationCommandInput;
| PutContactInformationCommandInput
| StartPrimaryEmailUpdateCommandInput;
export type ServiceOutputTypes =
| AcceptPrimaryEmailUpdateCommandOutput
| DeleteAlternateContactCommandOutput

@@ -112,6 +128,8 @@ | DisableRegionCommandOutput

| GetContactInformationCommandOutput
| GetPrimaryEmailCommandOutput
| GetRegionOptStatusCommandOutput
| ListRegionsCommandOutput
| PutAlternateContactCommandOutput
| PutContactInformationCommandOutput;
| PutContactInformationCommandOutput
| StartPrimaryEmailUpdateCommandOutput;
export interface ClientDefaults

@@ -118,0 +136,0 @@ extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {

@@ -9,3 +9,4 @@ import { Command as $Command } from "@smithy/smithy-client";

import { DeleteAlternateContactRequest } from "../models/models_0";
export { __MetadataBearer, $Command };
export { __MetadataBearer };
export { $Command };
export interface DeleteAlternateContactCommandInput

@@ -12,0 +13,0 @@ extends DeleteAlternateContactRequest {}

@@ -9,3 +9,4 @@ import { Command as $Command } from "@smithy/smithy-client";

import { DisableRegionRequest } from "../models/models_0";
export { __MetadataBearer, $Command };
export { __MetadataBearer };
export { $Command };
export interface DisableRegionCommandInput extends DisableRegionRequest {}

@@ -12,0 +13,0 @@ export interface DisableRegionCommandOutput extends __MetadataBearer {}

@@ -9,3 +9,4 @@ import { Command as $Command } from "@smithy/smithy-client";

import { EnableRegionRequest } from "../models/models_0";
export { __MetadataBearer, $Command };
export { __MetadataBearer };
export { $Command };
export interface EnableRegionCommandInput extends EnableRegionRequest {}

@@ -12,0 +13,0 @@ export interface EnableRegionCommandOutput extends __MetadataBearer {}

@@ -12,3 +12,4 @@ import { Command as $Command } from "@smithy/smithy-client";

} from "../models/models_0";
export { __MetadataBearer, $Command };
export { __MetadataBearer };
export { $Command };
export interface GetAlternateContactCommandInput

@@ -15,0 +16,0 @@ extends GetAlternateContactRequest {}

@@ -12,3 +12,4 @@ import { Command as $Command } from "@smithy/smithy-client";

} from "../models/models_0";
export { __MetadataBearer, $Command };
export { __MetadataBearer };
export { $Command };
export interface GetContactInformationCommandInput

@@ -15,0 +16,0 @@ extends GetContactInformationRequest {}

@@ -12,3 +12,4 @@ import { Command as $Command } from "@smithy/smithy-client";

} from "../models/models_0";
export { __MetadataBearer, $Command };
export { __MetadataBearer };
export { $Command };
export interface GetRegionOptStatusCommandInput

@@ -15,0 +16,0 @@ extends GetRegionOptStatusRequest {}

@@ -0,1 +1,2 @@

export * from "./AcceptPrimaryEmailUpdateCommand";
export * from "./DeleteAlternateContactCommand";

@@ -6,2 +7,3 @@ export * from "./DisableRegionCommand";

export * from "./GetContactInformationCommand";
export * from "./GetPrimaryEmailCommand";
export * from "./GetRegionOptStatusCommand";

@@ -11,1 +13,2 @@ export * from "./ListRegionsCommand";

export * from "./PutContactInformationCommand";
export * from "./StartPrimaryEmailUpdateCommand";

@@ -9,3 +9,4 @@ import { Command as $Command } from "@smithy/smithy-client";

import { ListRegionsRequest, ListRegionsResponse } from "../models/models_0";
export { __MetadataBearer, $Command };
export { __MetadataBearer };
export { $Command };
export interface ListRegionsCommandInput extends ListRegionsRequest {}

@@ -12,0 +13,0 @@ export interface ListRegionsCommandOutput

@@ -9,3 +9,4 @@ import { Command as $Command } from "@smithy/smithy-client";

import { PutAlternateContactRequest } from "../models/models_0";
export { __MetadataBearer, $Command };
export { __MetadataBearer };
export { $Command };
export interface PutAlternateContactCommandInput

@@ -12,0 +13,0 @@ extends PutAlternateContactRequest {}

@@ -9,3 +9,4 @@ import { Command as $Command } from "@smithy/smithy-client";

import { PutContactInformationRequest } from "../models/models_0";
export { __MetadataBearer, $Command };
export { __MetadataBearer };
export { $Command };
export interface PutContactInformationCommandInput

@@ -12,0 +13,0 @@ extends PutContactInformationRequest {}

@@ -5,5 +5,6 @@ import {

} from "@smithy/smithy-client";
export { __ServiceException, __ServiceExceptionOptions };
export { __ServiceExceptionOptions };
export { __ServiceException };
export declare class AccountServiceException extends __ServiceException {
constructor(options: __ServiceExceptionOptions);
}
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
import { AccountServiceException as __BaseException } from "./AccountServiceException";
export interface AcceptPrimaryEmailUpdateRequest {
AccountId: string | undefined;
PrimaryEmail: string | undefined;
Otp: string | undefined;
}
export declare const PrimaryEmailUpdateStatus: {
readonly ACCEPTED: "ACCEPTED";
readonly PENDING: "PENDING";
};
export type PrimaryEmailUpdateStatus =
(typeof PrimaryEmailUpdateStatus)[keyof typeof PrimaryEmailUpdateStatus];
export interface AcceptPrimaryEmailUpdateResponse {
Status?: PrimaryEmailUpdateStatus;
}
export declare class AccessDeniedException extends __BaseException {

@@ -10,12 +24,6 @@ readonly name: "AccessDeniedException";

}
export declare const AlternateContactType: {
readonly BILLING: "BILLING";
readonly OPERATIONS: "OPERATIONS";
readonly SECURITY: "SECURITY";
};
export type AlternateContactType =
(typeof AlternateContactType)[keyof typeof AlternateContactType];
export interface DeleteAlternateContactRequest {
AlternateContactType: AlternateContactType | undefined;
AccountId?: string;
export declare class ConflictException extends __BaseException {
readonly name: "ConflictException";
readonly $fault: "client";
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
}

@@ -66,2 +74,13 @@ export declare class InternalServerException extends __BaseException {

}
export declare const AlternateContactType: {
readonly BILLING: "BILLING";
readonly OPERATIONS: "OPERATIONS";
readonly SECURITY: "SECURITY";
};
export type AlternateContactType =
(typeof AlternateContactType)[keyof typeof AlternateContactType];
export interface DeleteAlternateContactRequest {
AlternateContactType: AlternateContactType | undefined;
AccountId?: string;
}
export interface GetAlternateContactRequest {

@@ -113,7 +132,15 @@ AlternateContactType: AlternateContactType | undefined;

}
export declare class ConflictException extends __BaseException {
readonly name: "ConflictException";
readonly $fault: "client";
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
export interface GetPrimaryEmailRequest {
AccountId: string | undefined;
}
export interface GetPrimaryEmailResponse {
PrimaryEmail?: string;
}
export interface StartPrimaryEmailUpdateRequest {
AccountId: string | undefined;
PrimaryEmail: string | undefined;
}
export interface StartPrimaryEmailUpdateResponse {
Status?: PrimaryEmailUpdateStatus;
}
export interface DisableRegionRequest {

@@ -158,2 +185,5 @@ AccountId?: string;

}
export declare const AcceptPrimaryEmailUpdateRequestFilterSensitiveLog: (
obj: AcceptPrimaryEmailUpdateRequest
) => any;
export declare const ValidationExceptionFieldFilterSensitiveLog: (

@@ -180,1 +210,7 @@ obj: ValidationExceptionField

) => any;
export declare const GetPrimaryEmailResponseFilterSensitiveLog: (
obj: GetPrimaryEmailResponse
) => any;
export declare const StartPrimaryEmailUpdateRequestFilterSensitiveLog: (
obj: StartPrimaryEmailUpdateRequest
) => any;

@@ -7,2 +7,6 @@ import {

import {
AcceptPrimaryEmailUpdateCommandInput,
AcceptPrimaryEmailUpdateCommandOutput,
} from "../commands/AcceptPrimaryEmailUpdateCommand";
import {
DeleteAlternateContactCommandInput,

@@ -28,2 +32,6 @@ DeleteAlternateContactCommandOutput,

import {
GetPrimaryEmailCommandInput,
GetPrimaryEmailCommandOutput,
} from "../commands/GetPrimaryEmailCommand";
import {
GetRegionOptStatusCommandInput,

@@ -44,2 +52,10 @@ GetRegionOptStatusCommandOutput,

} from "../commands/PutContactInformationCommand";
import {
StartPrimaryEmailUpdateCommandInput,
StartPrimaryEmailUpdateCommandOutput,
} from "../commands/StartPrimaryEmailUpdateCommand";
export declare const se_AcceptPrimaryEmailUpdateCommand: (
input: AcceptPrimaryEmailUpdateCommandInput,
context: __SerdeContext
) => Promise<__HttpRequest>;
export declare const se_DeleteAlternateContactCommand: (

@@ -65,2 +81,6 @@ input: DeleteAlternateContactCommandInput,

) => Promise<__HttpRequest>;
export declare const se_GetPrimaryEmailCommand: (
input: GetPrimaryEmailCommandInput,
context: __SerdeContext
) => Promise<__HttpRequest>;
export declare const se_GetRegionOptStatusCommand: (

@@ -82,2 +102,10 @@ input: GetRegionOptStatusCommandInput,

) => Promise<__HttpRequest>;
export declare const se_StartPrimaryEmailUpdateCommand: (
input: StartPrimaryEmailUpdateCommandInput,
context: __SerdeContext
) => Promise<__HttpRequest>;
export declare const de_AcceptPrimaryEmailUpdateCommand: (
output: __HttpResponse,
context: __SerdeContext
) => Promise<AcceptPrimaryEmailUpdateCommandOutput>;
export declare const de_DeleteAlternateContactCommand: (

@@ -103,2 +131,6 @@ output: __HttpResponse,

) => Promise<GetContactInformationCommandOutput>;
export declare const de_GetPrimaryEmailCommand: (
output: __HttpResponse,
context: __SerdeContext
) => Promise<GetPrimaryEmailCommandOutput>;
export declare const de_GetRegionOptStatusCommand: (

@@ -120,1 +152,5 @@ output: __HttpResponse,

) => Promise<PutContactInformationCommandOutput>;
export declare const de_StartPrimaryEmailUpdateCommand: (
output: __HttpResponse,
context: __SerdeContext
) => Promise<StartPrimaryEmailUpdateCommandOutput>;
{
"name": "@aws-sdk/client-account",
"description": "AWS SDK for JavaScript Account Client for Node.js, Browser and React Native",
"version": "3.590.0",
"version": "3.592.0",
"scripts": {

@@ -23,6 +23,6 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",

"@aws-crypto/sha256-js": "3.0.0",
"@aws-sdk/client-sso-oidc": "3.590.0",
"@aws-sdk/client-sts": "3.590.0",
"@aws-sdk/core": "3.588.0",
"@aws-sdk/credential-provider-node": "3.590.0",
"@aws-sdk/client-sso-oidc": "3.592.0",
"@aws-sdk/client-sts": "3.592.0",
"@aws-sdk/core": "3.592.0",
"@aws-sdk/credential-provider-node": "3.592.0",
"@aws-sdk/middleware-host-header": "3.577.0",

@@ -38,3 +38,3 @@ "@aws-sdk/middleware-logger": "3.577.0",

"@smithy/config-resolver": "^3.0.1",
"@smithy/core": "^2.1.1",
"@smithy/core": "^2.2.0",
"@smithy/fetch-http-handler": "^3.0.1",

@@ -41,0 +41,0 @@ "@smithy/hash-node": "^3.0.0",

@@ -208,2 +208,10 @@ <!-- generated file, do not edit directly -->

<summary>
AcceptPrimaryEmailUpdate
</summary>
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/account/command/AcceptPrimaryEmailUpdateCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/AcceptPrimaryEmailUpdateCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/AcceptPrimaryEmailUpdateCommandOutput/)
</details>
<details>
<summary>
DeleteAlternateContact

@@ -249,2 +257,10 @@ </summary>

<summary>
GetPrimaryEmail
</summary>
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/account/command/GetPrimaryEmailCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/GetPrimaryEmailCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/GetPrimaryEmailCommandOutput/)
</details>
<details>
<summary>
GetRegionOptStatus

@@ -280,1 +296,9 @@ </summary>

</details>
<details>
<summary>
StartPrimaryEmailUpdate
</summary>
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/account/command/StartPrimaryEmailUpdateCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/StartPrimaryEmailUpdateCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/StartPrimaryEmailUpdateCommandOutput/)
</details>
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc