@aws-sdk/client-endusermessaging 3.1145.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (178) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +370 -0
  3. package/dist-cjs/index.js +1645 -0
  4. package/dist-es/EndUserMessaging.js +79 -0
  5. package/dist-es/EndUserMessagingClient.js +47 -0
  6. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  7. package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
  8. package/dist-es/commandBuilder.js +6 -0
  9. package/dist-es/commands/CreateBrandProfileAttributesCommand.js +4 -0
  10. package/dist-es/commands/CreateBrandProfileCommand.js +4 -0
  11. package/dist-es/commands/CreateBrandProfileFromRegistrationCommand.js +4 -0
  12. package/dist-es/commands/CreateNotifyCodeConfigurationCommand.js +4 -0
  13. package/dist-es/commands/CreateRegistrationsFromBrandProfileCommand.js +4 -0
  14. package/dist-es/commands/DeleteBrandProfileAttributeCommand.js +4 -0
  15. package/dist-es/commands/DeleteBrandProfileCommand.js +4 -0
  16. package/dist-es/commands/DeleteNotifyCodeConfigurationCommand.js +4 -0
  17. package/dist-es/commands/GetBrandProfileAttributeCommand.js +4 -0
  18. package/dist-es/commands/GetBrandProfileCommand.js +4 -0
  19. package/dist-es/commands/GetJobCommand.js +4 -0
  20. package/dist-es/commands/GetNotifyCodeConfigurationCommand.js +4 -0
  21. package/dist-es/commands/ListBrandProfileAttributesCommand.js +4 -0
  22. package/dist-es/commands/ListBrandProfilesCommand.js +4 -0
  23. package/dist-es/commands/ListJobsCommand.js +4 -0
  24. package/dist-es/commands/ListNotifyCodeConfigurationsCommand.js +4 -0
  25. package/dist-es/commands/ListRegistrationsFromBrandProfileCommand.js +4 -0
  26. package/dist-es/commands/ListTagsForResourceCommand.js +4 -0
  27. package/dist-es/commands/SendNotifyCodeVerificationCommand.js +4 -0
  28. package/dist-es/commands/TagResourceCommand.js +4 -0
  29. package/dist-es/commands/UntagResourceCommand.js +4 -0
  30. package/dist-es/commands/UpdateBrandProfileAttributeCommand.js +4 -0
  31. package/dist-es/commands/UpdateBrandProfileCommand.js +4 -0
  32. package/dist-es/commands/UpdateBrandProfileFromRegistrationCommand.js +4 -0
  33. package/dist-es/commands/UpdateNotifyCodeConfigurationCommand.js +4 -0
  34. package/dist-es/commands/UpdateRegistrationsFromBrandProfileCommand.js +4 -0
  35. package/dist-es/commands/ValidateNotifyCodeVerificationCommand.js +4 -0
  36. package/dist-es/commands/index.js +27 -0
  37. package/dist-es/endpoint/EndpointParameters.js +13 -0
  38. package/dist-es/endpoint/bdd.js +46 -0
  39. package/dist-es/endpoint/endpointResolver.js +14 -0
  40. package/dist-es/extensionConfiguration.js +1 -0
  41. package/dist-es/index.js +11 -0
  42. package/dist-es/models/EndUserMessagingServiceException.js +8 -0
  43. package/dist-es/models/enums.js +43 -0
  44. package/dist-es/models/errors.js +99 -0
  45. package/dist-es/models/models_0.js +1 -0
  46. package/dist-es/pagination/Interfaces.js +1 -0
  47. package/dist-es/pagination/ListBrandProfileAttributesPaginator.js +4 -0
  48. package/dist-es/pagination/ListBrandProfilesPaginator.js +4 -0
  49. package/dist-es/pagination/ListJobsPaginator.js +4 -0
  50. package/dist-es/pagination/ListNotifyCodeConfigurationsPaginator.js +4 -0
  51. package/dist-es/pagination/ListRegistrationsFromBrandProfilePaginator.js +4 -0
  52. package/dist-es/pagination/index.js +6 -0
  53. package/dist-es/runtimeConfig.browser.js +29 -0
  54. package/dist-es/runtimeConfig.js +43 -0
  55. package/dist-es/runtimeConfig.native.js +9 -0
  56. package/dist-es/runtimeConfig.shared.js +40 -0
  57. package/dist-es/runtimeExtensions.js +9 -0
  58. package/dist-es/schemas/schemas_0.js +818 -0
  59. package/dist-es/waiters/index.js +2 -0
  60. package/dist-es/waiters/waitForBrandProfileActive.js +58 -0
  61. package/dist-es/waiters/waitForJobSuccess.js +40 -0
  62. package/dist-types/EndUserMessaging.d.ts +256 -0
  63. package/dist-types/EndUserMessagingClient.d.ts +213 -0
  64. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  65. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  66. package/dist-types/commandBuilder.d.ts +18 -0
  67. package/dist-types/commands/CreateBrandProfileAttributesCommand.d.ts +139 -0
  68. package/dist-types/commands/CreateBrandProfileCommand.d.ts +129 -0
  69. package/dist-types/commands/CreateBrandProfileFromRegistrationCommand.d.ts +130 -0
  70. package/dist-types/commands/CreateNotifyCodeConfigurationCommand.d.ts +206 -0
  71. package/dist-types/commands/CreateRegistrationsFromBrandProfileCommand.d.ts +125 -0
  72. package/dist-types/commands/DeleteBrandProfileAttributeCommand.d.ts +110 -0
  73. package/dist-types/commands/DeleteBrandProfileCommand.d.ts +108 -0
  74. package/dist-types/commands/DeleteNotifyCodeConfigurationCommand.d.ts +102 -0
  75. package/dist-types/commands/GetBrandProfileAttributeCommand.d.ts +119 -0
  76. package/dist-types/commands/GetBrandProfileCommand.d.ts +115 -0
  77. package/dist-types/commands/GetJobCommand.d.ts +129 -0
  78. package/dist-types/commands/GetNotifyCodeConfigurationCommand.d.ts +156 -0
  79. package/dist-types/commands/ListBrandProfileAttributesCommand.d.ts +124 -0
  80. package/dist-types/commands/ListBrandProfilesCommand.d.ts +122 -0
  81. package/dist-types/commands/ListJobsCommand.d.ts +133 -0
  82. package/dist-types/commands/ListNotifyCodeConfigurationsCommand.d.ts +159 -0
  83. package/dist-types/commands/ListRegistrationsFromBrandProfileCommand.d.ts +121 -0
  84. package/dist-types/commands/ListTagsForResourceCommand.d.ts +113 -0
  85. package/dist-types/commands/SendNotifyCodeVerificationCommand.d.ts +151 -0
  86. package/dist-types/commands/TagResourceCommand.d.ts +114 -0
  87. package/dist-types/commands/UntagResourceCommand.d.ts +105 -0
  88. package/dist-types/commands/UpdateBrandProfileAttributeCommand.d.ts +127 -0
  89. package/dist-types/commands/UpdateBrandProfileCommand.d.ts +122 -0
  90. package/dist-types/commands/UpdateBrandProfileFromRegistrationCommand.d.ts +123 -0
  91. package/dist-types/commands/UpdateNotifyCodeConfigurationCommand.d.ts +193 -0
  92. package/dist-types/commands/UpdateRegistrationsFromBrandProfileCommand.d.ts +127 -0
  93. package/dist-types/commands/ValidateNotifyCodeVerificationCommand.d.ts +104 -0
  94. package/dist-types/commands/index.d.ts +27 -0
  95. package/dist-types/endpoint/EndpointParameters.d.ts +50 -0
  96. package/dist-types/endpoint/bdd.d.ts +2 -0
  97. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  98. package/dist-types/extensionConfiguration.d.ts +9 -0
  99. package/dist-types/index.d.ts +19 -0
  100. package/dist-types/models/EndUserMessagingServiceException.d.ts +14 -0
  101. package/dist-types/models/enums.d.ts +145 -0
  102. package/dist-types/models/errors.d.ts +119 -0
  103. package/dist-types/models/models_0.d.ts +1667 -0
  104. package/dist-types/pagination/Interfaces.d.ts +8 -0
  105. package/dist-types/pagination/ListBrandProfileAttributesPaginator.d.ts +7 -0
  106. package/dist-types/pagination/ListBrandProfilesPaginator.d.ts +7 -0
  107. package/dist-types/pagination/ListJobsPaginator.d.ts +7 -0
  108. package/dist-types/pagination/ListNotifyCodeConfigurationsPaginator.d.ts +7 -0
  109. package/dist-types/pagination/ListRegistrationsFromBrandProfilePaginator.d.ts +7 -0
  110. package/dist-types/pagination/index.d.ts +6 -0
  111. package/dist-types/runtimeConfig.browser.d.ts +57 -0
  112. package/dist-types/runtimeConfig.d.ts +57 -0
  113. package/dist-types/runtimeConfig.native.d.ts +56 -0
  114. package/dist-types/runtimeConfig.shared.d.ts +28 -0
  115. package/dist-types/runtimeExtensions.d.ts +17 -0
  116. package/dist-types/schemas/schemas_0.d.ts +120 -0
  117. package/dist-types/ts3.4/EndUserMessaging.d.ts +515 -0
  118. package/dist-types/ts3.4/EndUserMessagingClient.d.ts +256 -0
  119. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +25 -0
  120. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
  121. package/dist-types/ts3.4/commandBuilder.d.ts +40 -0
  122. package/dist-types/ts3.4/commands/CreateBrandProfileAttributesCommand.d.ts +42 -0
  123. package/dist-types/ts3.4/commands/CreateBrandProfileCommand.d.ts +39 -0
  124. package/dist-types/ts3.4/commands/CreateBrandProfileFromRegistrationCommand.d.ts +42 -0
  125. package/dist-types/ts3.4/commands/CreateNotifyCodeConfigurationCommand.d.ts +42 -0
  126. package/dist-types/ts3.4/commands/CreateRegistrationsFromBrandProfileCommand.d.ts +42 -0
  127. package/dist-types/ts3.4/commands/DeleteBrandProfileAttributeCommand.d.ts +42 -0
  128. package/dist-types/ts3.4/commands/DeleteBrandProfileCommand.d.ts +39 -0
  129. package/dist-types/ts3.4/commands/DeleteNotifyCodeConfigurationCommand.d.ts +42 -0
  130. package/dist-types/ts3.4/commands/GetBrandProfileAttributeCommand.d.ts +39 -0
  131. package/dist-types/ts3.4/commands/GetBrandProfileCommand.d.ts +38 -0
  132. package/dist-types/ts3.4/commands/GetJobCommand.d.ts +38 -0
  133. package/dist-types/ts3.4/commands/GetNotifyCodeConfigurationCommand.d.ts +42 -0
  134. package/dist-types/ts3.4/commands/ListBrandProfileAttributesCommand.d.ts +42 -0
  135. package/dist-types/ts3.4/commands/ListBrandProfilesCommand.d.ts +38 -0
  136. package/dist-types/ts3.4/commands/ListJobsCommand.d.ts +38 -0
  137. package/dist-types/ts3.4/commands/ListNotifyCodeConfigurationsCommand.d.ts +42 -0
  138. package/dist-types/ts3.4/commands/ListRegistrationsFromBrandProfileCommand.d.ts +42 -0
  139. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
  140. package/dist-types/ts3.4/commands/SendNotifyCodeVerificationCommand.d.ts +42 -0
  141. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +38 -0
  142. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
  143. package/dist-types/ts3.4/commands/UpdateBrandProfileAttributeCommand.d.ts +42 -0
  144. package/dist-types/ts3.4/commands/UpdateBrandProfileCommand.d.ts +39 -0
  145. package/dist-types/ts3.4/commands/UpdateBrandProfileFromRegistrationCommand.d.ts +42 -0
  146. package/dist-types/ts3.4/commands/UpdateNotifyCodeConfigurationCommand.d.ts +42 -0
  147. package/dist-types/ts3.4/commands/UpdateRegistrationsFromBrandProfileCommand.d.ts +42 -0
  148. package/dist-types/ts3.4/commands/ValidateNotifyCodeVerificationCommand.d.ts +42 -0
  149. package/dist-types/ts3.4/commands/index.d.ts +27 -0
  150. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  151. package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
  152. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  153. package/dist-types/ts3.4/extensionConfiguration.d.ts +10 -0
  154. package/dist-types/ts3.4/index.d.ts +14 -0
  155. package/dist-types/ts3.4/models/EndUserMessagingServiceException.d.ts +9 -0
  156. package/dist-types/ts3.4/models/enums.d.ts +54 -0
  157. package/dist-types/ts3.4/models/errors.d.ts +47 -0
  158. package/dist-types/ts3.4/models/models_0.d.ts +413 -0
  159. package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
  160. package/dist-types/ts3.4/pagination/ListBrandProfileAttributesPaginator.d.ts +11 -0
  161. package/dist-types/ts3.4/pagination/ListBrandProfilesPaginator.d.ts +11 -0
  162. package/dist-types/ts3.4/pagination/ListJobsPaginator.d.ts +8 -0
  163. package/dist-types/ts3.4/pagination/ListNotifyCodeConfigurationsPaginator.d.ts +11 -0
  164. package/dist-types/ts3.4/pagination/ListRegistrationsFromBrandProfilePaginator.d.ts +11 -0
  165. package/dist-types/ts3.4/pagination/index.d.ts +6 -0
  166. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
  167. package/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
  168. package/dist-types/ts3.4/runtimeConfig.native.d.ts +97 -0
  169. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +31 -0
  170. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  171. package/dist-types/ts3.4/schemas/schemas_0.d.ts +115 -0
  172. package/dist-types/ts3.4/waiters/index.d.ts +2 -0
  173. package/dist-types/ts3.4/waiters/waitForBrandProfileActive.d.ts +15 -0
  174. package/dist-types/ts3.4/waiters/waitForJobSuccess.d.ts +12 -0
  175. package/dist-types/waiters/index.d.ts +2 -0
  176. package/dist-types/waiters/waitForBrandProfileActive.d.ts +15 -0
  177. package/dist-types/waiters/waitForJobSuccess.d.ts +15 -0
  178. package/package.json +69 -0
@@ -0,0 +1,75 @@
1
+ import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core/httpAuthSchemes";
2
+ import type { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
3
+ import { type EndUserMessagingClientResolvedConfig } from "../EndUserMessagingClient";
4
+ /**
5
+ * @internal
6
+ */
7
+ export interface EndUserMessagingHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
8
+ region?: string;
9
+ }
10
+ /**
11
+ * @internal
12
+ */
13
+ export interface EndUserMessagingHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<EndUserMessagingClientResolvedConfig, HandlerExecutionContext, EndUserMessagingHttpAuthSchemeParameters, object> {
14
+ }
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const defaultEndUserMessagingHttpAuthSchemeParametersProvider: (config: EndUserMessagingClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<EndUserMessagingHttpAuthSchemeParameters>;
19
+ /**
20
+ * @internal
21
+ */
22
+ export interface EndUserMessagingHttpAuthSchemeProvider extends HttpAuthSchemeProvider<EndUserMessagingHttpAuthSchemeParameters> {
23
+ }
24
+ /**
25
+ * @internal
26
+ */
27
+ export declare const defaultEndUserMessagingHttpAuthSchemeProvider: EndUserMessagingHttpAuthSchemeProvider;
28
+ /**
29
+ * @public
30
+ */
31
+ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
32
+ /**
33
+ * A comma-separated list of case-sensitive auth scheme names.
34
+ * An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
35
+ * For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
36
+ * @public
37
+ */
38
+ authSchemePreference?: string[] | Provider<string[]>;
39
+ /**
40
+ * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
41
+ * @internal
42
+ */
43
+ httpAuthSchemes?: HttpAuthScheme[];
44
+ /**
45
+ * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
46
+ * @internal
47
+ */
48
+ httpAuthSchemeProvider?: EndUserMessagingHttpAuthSchemeProvider;
49
+ }
50
+ /**
51
+ * @internal
52
+ */
53
+ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
54
+ /**
55
+ * A comma-separated list of case-sensitive auth scheme names.
56
+ * An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
57
+ * For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
58
+ * @public
59
+ */
60
+ readonly authSchemePreference: Provider<string[]>;
61
+ /**
62
+ * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
63
+ * @internal
64
+ */
65
+ readonly httpAuthSchemes: HttpAuthScheme[];
66
+ /**
67
+ * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
68
+ * @internal
69
+ */
70
+ readonly httpAuthSchemeProvider: EndUserMessagingHttpAuthSchemeProvider;
71
+ }
72
+ /**
73
+ * @internal
74
+ */
75
+ export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
@@ -0,0 +1,18 @@
1
+ import type { EndpointParameterInstructions } from "@smithy/types";
2
+ import type { EndUserMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./EndUserMessagingClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const command: <I extends ServiceInputTypes, O extends ServiceOutputTypes>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => import("@smithy/types").Pluggable<any, any>[], op: string, $: import("@smithy/types").StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
7
+ new (input: I): import("@smithy/core/client").CommandImpl<I, O, EndUserMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, EndUserMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
9
+ getEndpointParameterInstructions(): EndpointParameterInstructions;
10
+ };
11
+ /**
12
+ * @internal
13
+ */
14
+ export declare const _ep0: EndpointParameterInstructions;
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];
@@ -0,0 +1,139 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { CreateBrandProfileAttributesInput, CreateBrandProfileAttributesOutput } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link CreateBrandProfileAttributesCommand}.
11
+ */
12
+ export interface CreateBrandProfileAttributesCommandInput extends CreateBrandProfileAttributesInput {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link CreateBrandProfileAttributesCommand}.
18
+ */
19
+ export interface CreateBrandProfileAttributesCommandOutput extends CreateBrandProfileAttributesOutput, __MetadataBearer {
20
+ }
21
+ declare const CreateBrandProfileAttributesCommand_base: {
22
+ new (input: CreateBrandProfileAttributesCommandInput): import("@smithy/core/client").CommandImpl<CreateBrandProfileAttributesCommandInput, CreateBrandProfileAttributesCommandOutput, import("..").EndUserMessagingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateBrandProfileAttributesCommandInput): import("@smithy/core/client").CommandImpl<CreateBrandProfileAttributesCommandInput, CreateBrandProfileAttributesCommandOutput, import("..").EndUserMessagingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Creates up to 10 attributes for a brand profile in a single request. For attributes of type IMAGE or DOCUMENT, the response includes a presigned Amazon S3 URL that you use to upload the media. This operation is atomic: either all of the attributes are created, or none of them are.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { EndUserMessagingClient, CreateBrandProfileAttributesCommand } from "@aws-sdk/client-endusermessaging"; // ES Modules import
32
+ * // const { EndUserMessagingClient, CreateBrandProfileAttributesCommand } = require("@aws-sdk/client-endusermessaging"); // CommonJS import
33
+ * // import type { EndUserMessagingClientConfig } from "@aws-sdk/client-endusermessaging";
34
+ * const config = {}; // type is EndUserMessagingClientConfig
35
+ * const client = new EndUserMessagingClient(config);
36
+ * const input = { // CreateBrandProfileAttributesInput
37
+ * brandProfileId: "STRING_VALUE", // required
38
+ * attributes: [ // BrandProfileAttributeInputList // required
39
+ * { // BrandProfileAttributeInput
40
+ * attributeName: "STRING_VALUE", // required
41
+ * attributeType: "TEXT" || "IMAGE" || "DOCUMENT", // required
42
+ * attributeValue: "STRING_VALUE",
43
+ * attachmentBody: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
44
+ * description: "STRING_VALUE",
45
+ * category: "STRING_VALUE",
46
+ * },
47
+ * ],
48
+ * clientToken: "STRING_VALUE",
49
+ * };
50
+ * const command = new CreateBrandProfileAttributesCommand(input);
51
+ * const response = await client.send(command);
52
+ * // { // CreateBrandProfileAttributesOutput
53
+ * // attributes: [ // BrandProfileAttributeOutputList // required
54
+ * // { // BrandProfileAttributeOutput
55
+ * // attributeName: "STRING_VALUE", // required
56
+ * // attributeType: "TEXT" || "IMAGE" || "DOCUMENT", // required
57
+ * // mediaDownloadUrl: "STRING_VALUE",
58
+ * // },
59
+ * // ],
60
+ * // };
61
+ *
62
+ * ```
63
+ *
64
+ * @param CreateBrandProfileAttributesCommandInput - {@link CreateBrandProfileAttributesCommandInput}
65
+ * @returns {@link CreateBrandProfileAttributesCommandOutput}
66
+ * @see {@link CreateBrandProfileAttributesCommandInput} for command's `input` shape.
67
+ * @see {@link CreateBrandProfileAttributesCommandOutput} for command's `response` shape.
68
+ * @see {@link EndUserMessagingClientResolvedConfig | config} for EndUserMessagingClient's `config` shape.
69
+ *
70
+ * @throws {@link AccessDeniedException} (client fault)
71
+ * <p>You do not have sufficient access to perform this action.</p>
72
+ *
73
+ * @throws {@link ConflictException} (client fault)
74
+ * <p>The request conflicts with the current state of the resource.</p>
75
+ *
76
+ * @throws {@link InternalServerException} (server fault)
77
+ * <p>An unexpected error occurred during the processing of the request.</p>
78
+ *
79
+ * @throws {@link ResourceNotFoundException} (client fault)
80
+ * <p>The request references a resource that does not exist. Verify that the resource identifier is correct and try your request again.</p>
81
+ *
82
+ * @throws {@link ServiceQuotaExceededException} (client fault)
83
+ * <p>The request would exceed a service quota for your account.</p>
84
+ *
85
+ * @throws {@link ThrottlingException} (client fault)
86
+ * <p>The request was denied because it exceeded the allowed request rate.</p>
87
+ *
88
+ * @throws {@link ValidationException} (client fault)
89
+ * A standard error for input validation failures.
90
+ * This should be thrown by services when a member of the input structure
91
+ * falls outside of the modeled or documented constraints.
92
+ *
93
+ * @throws {@link EndUserMessagingServiceException}
94
+ * <p>Base exception class for all service exceptions from EndUserMessaging service.</p>
95
+ *
96
+ *
97
+ * @example Create a text attribute on a brand profile
98
+ * ```javascript
99
+ * //
100
+ * const input = {
101
+ * attributes: [
102
+ * {
103
+ * attributeName: "SupportEmail",
104
+ * attributeType: "TEXT",
105
+ * attributeValue: "support@example.com",
106
+ * category: "CONTACT"
107
+ * }
108
+ * ],
109
+ * brandProfileId: "bp-abc12345678901234"
110
+ * };
111
+ * const command = new CreateBrandProfileAttributesCommand(input);
112
+ * const response = await client.send(command);
113
+ * /* response is
114
+ * {
115
+ * attributes: [
116
+ * {
117
+ * attributeName: "SupportEmail",
118
+ * attributeType: "TEXT"
119
+ * }
120
+ * ]
121
+ * }
122
+ * *\/
123
+ * ```
124
+ *
125
+ * @public
126
+ */
127
+ export declare class CreateBrandProfileAttributesCommand extends CreateBrandProfileAttributesCommand_base {
128
+ /** @internal type navigation helper, not in runtime. */
129
+ protected static __types: {
130
+ api: {
131
+ input: CreateBrandProfileAttributesInput;
132
+ output: CreateBrandProfileAttributesOutput;
133
+ };
134
+ sdk: {
135
+ input: CreateBrandProfileAttributesCommandInput;
136
+ output: CreateBrandProfileAttributesCommandOutput;
137
+ };
138
+ };
139
+ }
@@ -0,0 +1,129 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { CreateBrandProfileInput, CreateBrandProfileOutput } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link CreateBrandProfileCommand}.
11
+ */
12
+ export interface CreateBrandProfileCommandInput extends CreateBrandProfileInput {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link CreateBrandProfileCommand}.
18
+ */
19
+ export interface CreateBrandProfileCommandOutput extends CreateBrandProfileOutput, __MetadataBearer {
20
+ }
21
+ declare const CreateBrandProfileCommand_base: {
22
+ new (input: CreateBrandProfileCommandInput): import("@smithy/core/client").CommandImpl<CreateBrandProfileCommandInput, CreateBrandProfileCommandOutput, import("..").EndUserMessagingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateBrandProfileCommandInput): import("@smithy/core/client").CommandImpl<CreateBrandProfileCommandInput, CreateBrandProfileCommandOutput, import("..").EndUserMessagingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Creates a brand profile. A brand profile is a lightweight container that holds your brand identity information as flexible attributes. After you create a brand profile, use the CreateBrandProfileAttributes operation to add company information, addresses, compliance documents, and logos.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { EndUserMessagingClient, CreateBrandProfileCommand } from "@aws-sdk/client-endusermessaging"; // ES Modules import
32
+ * // const { EndUserMessagingClient, CreateBrandProfileCommand } = require("@aws-sdk/client-endusermessaging"); // CommonJS import
33
+ * // import type { EndUserMessagingClientConfig } from "@aws-sdk/client-endusermessaging";
34
+ * const config = {}; // type is EndUserMessagingClientConfig
35
+ * const client = new EndUserMessagingClient(config);
36
+ * const input = { // CreateBrandProfileInput
37
+ * brandProfileName: "STRING_VALUE", // required
38
+ * clientToken: "STRING_VALUE",
39
+ * deletionProtectionEnabled: true || false,
40
+ * tags: [ // TagList
41
+ * { // Tag
42
+ * key: "STRING_VALUE", // required
43
+ * value: "STRING_VALUE", // required
44
+ * },
45
+ * ],
46
+ * };
47
+ * const command = new CreateBrandProfileCommand(input);
48
+ * const response = await client.send(command);
49
+ * // { // CreateBrandProfileOutput
50
+ * // brandProfileId: "STRING_VALUE", // required
51
+ * // brandProfileArn: "STRING_VALUE", // required
52
+ * // brandProfileName: "STRING_VALUE", // required
53
+ * // status: "ACTIVE" || "BLOCKED" || "PAUSED" || "CANCELLED" || "FAILED", // required
54
+ * // deletionProtectionEnabled: true || false, // required
55
+ * // createdAt: new Date("TIMESTAMP"), // required
56
+ * // updatedAt: new Date("TIMESTAMP"), // required
57
+ * // attributesCreated: Number("int"), // required
58
+ * // };
59
+ *
60
+ * ```
61
+ *
62
+ * @param CreateBrandProfileCommandInput - {@link CreateBrandProfileCommandInput}
63
+ * @returns {@link CreateBrandProfileCommandOutput}
64
+ * @see {@link CreateBrandProfileCommandInput} for command's `input` shape.
65
+ * @see {@link CreateBrandProfileCommandOutput} for command's `response` shape.
66
+ * @see {@link EndUserMessagingClientResolvedConfig | config} for EndUserMessagingClient's `config` shape.
67
+ *
68
+ * @throws {@link AccessDeniedException} (client fault)
69
+ * <p>You do not have sufficient access to perform this action.</p>
70
+ *
71
+ * @throws {@link ConflictException} (client fault)
72
+ * <p>The request conflicts with the current state of the resource.</p>
73
+ *
74
+ * @throws {@link InternalServerException} (server fault)
75
+ * <p>An unexpected error occurred during the processing of the request.</p>
76
+ *
77
+ * @throws {@link ServiceQuotaExceededException} (client fault)
78
+ * <p>The request would exceed a service quota for your account.</p>
79
+ *
80
+ * @throws {@link ThrottlingException} (client fault)
81
+ * <p>The request was denied because it exceeded the allowed request rate.</p>
82
+ *
83
+ * @throws {@link ValidationException} (client fault)
84
+ * A standard error for input validation failures.
85
+ * This should be thrown by services when a member of the input structure
86
+ * falls outside of the modeled or documented constraints.
87
+ *
88
+ * @throws {@link EndUserMessagingServiceException}
89
+ * <p>Base exception class for all service exceptions from EndUserMessaging service.</p>
90
+ *
91
+ *
92
+ * @example Create a brand profile
93
+ * ```javascript
94
+ * //
95
+ * const input = {
96
+ * brandProfileName: "AcmeCorp",
97
+ * deletionProtectionEnabled: true
98
+ * };
99
+ * const command = new CreateBrandProfileCommand(input);
100
+ * const response = await client.send(command);
101
+ * /* response is
102
+ * {
103
+ * attributesCreated: 0,
104
+ * brandProfileArn: "arn:aws:end-user-messaging:us-east-1:123456789012:brand-profile/bp-abc12345678901234",
105
+ * brandProfileId: "bp-abc12345678901234",
106
+ * brandProfileName: "AcmeCorp",
107
+ * createdAt: 1727130000,
108
+ * deletionProtectionEnabled: true,
109
+ * status: "ACTIVE",
110
+ * updatedAt: 1727130000
111
+ * }
112
+ * *\/
113
+ * ```
114
+ *
115
+ * @public
116
+ */
117
+ export declare class CreateBrandProfileCommand extends CreateBrandProfileCommand_base {
118
+ /** @internal type navigation helper, not in runtime. */
119
+ protected static __types: {
120
+ api: {
121
+ input: CreateBrandProfileInput;
122
+ output: CreateBrandProfileOutput;
123
+ };
124
+ sdk: {
125
+ input: CreateBrandProfileCommandInput;
126
+ output: CreateBrandProfileCommandOutput;
127
+ };
128
+ };
129
+ }
@@ -0,0 +1,130 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { CreateBrandProfileFromRegistrationInput, CreateBrandProfileFromRegistrationOutput } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link CreateBrandProfileFromRegistrationCommand}.
11
+ */
12
+ export interface CreateBrandProfileFromRegistrationCommandInput extends CreateBrandProfileFromRegistrationInput {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link CreateBrandProfileFromRegistrationCommand}.
18
+ */
19
+ export interface CreateBrandProfileFromRegistrationCommandOutput extends CreateBrandProfileFromRegistrationOutput, __MetadataBearer {
20
+ }
21
+ declare const CreateBrandProfileFromRegistrationCommand_base: {
22
+ new (input: CreateBrandProfileFromRegistrationCommandInput): import("@smithy/core/client").CommandImpl<CreateBrandProfileFromRegistrationCommandInput, CreateBrandProfileFromRegistrationCommandOutput, import("..").EndUserMessagingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateBrandProfileFromRegistrationCommandInput): import("@smithy/core/client").CommandImpl<CreateBrandProfileFromRegistrationCommandInput, CreateBrandProfileFromRegistrationCommandOutput, import("..").EndUserMessagingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Creates a brand profile and populates its attributes from an existing registration. This operation runs asynchronously. Use the GetJob operation to track its progress.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { EndUserMessagingClient, CreateBrandProfileFromRegistrationCommand } from "@aws-sdk/client-endusermessaging"; // ES Modules import
32
+ * // const { EndUserMessagingClient, CreateBrandProfileFromRegistrationCommand } = require("@aws-sdk/client-endusermessaging"); // CommonJS import
33
+ * // import type { EndUserMessagingClientConfig } from "@aws-sdk/client-endusermessaging";
34
+ * const config = {}; // type is EndUserMessagingClientConfig
35
+ * const client = new EndUserMessagingClient(config);
36
+ * const input = { // CreateBrandProfileFromRegistrationInput
37
+ * registrationId: "STRING_VALUE", // required
38
+ * brandProfileName: "STRING_VALUE", // required
39
+ * smartMatch: true || false,
40
+ * tags: [ // TagList
41
+ * { // Tag
42
+ * key: "STRING_VALUE", // required
43
+ * value: "STRING_VALUE", // required
44
+ * },
45
+ * ],
46
+ * clientToken: "STRING_VALUE",
47
+ * };
48
+ * const command = new CreateBrandProfileFromRegistrationCommand(input);
49
+ * const response = await client.send(command);
50
+ * // { // CreateBrandProfileFromRegistrationOutput
51
+ * // results: [ // JobResults // required
52
+ * // { // JobResult
53
+ * // jobId: "STRING_VALUE", // required
54
+ * // resourceIdentifier: "STRING_VALUE", // required
55
+ * // },
56
+ * // ],
57
+ * // };
58
+ *
59
+ * ```
60
+ *
61
+ * @param CreateBrandProfileFromRegistrationCommandInput - {@link CreateBrandProfileFromRegistrationCommandInput}
62
+ * @returns {@link CreateBrandProfileFromRegistrationCommandOutput}
63
+ * @see {@link CreateBrandProfileFromRegistrationCommandInput} for command's `input` shape.
64
+ * @see {@link CreateBrandProfileFromRegistrationCommandOutput} for command's `response` shape.
65
+ * @see {@link EndUserMessagingClientResolvedConfig | config} for EndUserMessagingClient's `config` shape.
66
+ *
67
+ * @throws {@link AccessDeniedException} (client fault)
68
+ * <p>You do not have sufficient access to perform this action.</p>
69
+ *
70
+ * @throws {@link ConflictException} (client fault)
71
+ * <p>The request conflicts with the current state of the resource.</p>
72
+ *
73
+ * @throws {@link InternalServerException} (server fault)
74
+ * <p>An unexpected error occurred during the processing of the request.</p>
75
+ *
76
+ * @throws {@link ResourceNotFoundException} (client fault)
77
+ * <p>The request references a resource that does not exist. Verify that the resource identifier is correct and try your request again.</p>
78
+ *
79
+ * @throws {@link ServiceQuotaExceededException} (client fault)
80
+ * <p>The request would exceed a service quota for your account.</p>
81
+ *
82
+ * @throws {@link ThrottlingException} (client fault)
83
+ * <p>The request was denied because it exceeded the allowed request rate.</p>
84
+ *
85
+ * @throws {@link ValidationException} (client fault)
86
+ * A standard error for input validation failures.
87
+ * This should be thrown by services when a member of the input structure
88
+ * falls outside of the modeled or documented constraints.
89
+ *
90
+ * @throws {@link EndUserMessagingServiceException}
91
+ * <p>Base exception class for all service exceptions from EndUserMessaging service.</p>
92
+ *
93
+ *
94
+ * @example Create a brand profile from a registration
95
+ * ```javascript
96
+ * //
97
+ * const input = {
98
+ * brandProfileName: "AcmeCorp",
99
+ * registrationId: "reg-abc12345678901234",
100
+ * smartMatch: true
101
+ * };
102
+ * const command = new CreateBrandProfileFromRegistrationCommand(input);
103
+ * const response = await client.send(command);
104
+ * /* response is
105
+ * {
106
+ * results: [
107
+ * {
108
+ * jobId: "job-abc12345678901234",
109
+ * resourceIdentifier: "reg-abc12345678901234"
110
+ * }
111
+ * ]
112
+ * }
113
+ * *\/
114
+ * ```
115
+ *
116
+ * @public
117
+ */
118
+ export declare class CreateBrandProfileFromRegistrationCommand extends CreateBrandProfileFromRegistrationCommand_base {
119
+ /** @internal type navigation helper, not in runtime. */
120
+ protected static __types: {
121
+ api: {
122
+ input: CreateBrandProfileFromRegistrationInput;
123
+ output: CreateBrandProfileFromRegistrationOutput;
124
+ };
125
+ sdk: {
126
+ input: CreateBrandProfileFromRegistrationCommandInput;
127
+ output: CreateBrandProfileFromRegistrationCommandOutput;
128
+ };
129
+ };
130
+ }