Skip to content

Commit 43bff29

Browse files
author
awstools
committed
feat(client-sns): This release marks phone numbers as sensitive inputs.
1 parent f4e74b7 commit 43bff29

12 files changed

+277
-93
lines changed

clients/client-sns/src/commands/CheckIfPhoneNumberIsOptedOutCommand.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ import { Command as $Command } from "@smithy/smithy-client";
55
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { commonParams } from "../endpoint/EndpointParameters";
8-
import { CheckIfPhoneNumberIsOptedOutInput, CheckIfPhoneNumberIsOptedOutResponse } from "../models/models_0";
8+
import {
9+
CheckIfPhoneNumberIsOptedOutInput,
10+
CheckIfPhoneNumberIsOptedOutInputFilterSensitiveLog,
11+
CheckIfPhoneNumberIsOptedOutResponse,
12+
} from "../models/models_0";
913
import { de_CheckIfPhoneNumberIsOptedOutCommand, se_CheckIfPhoneNumberIsOptedOutCommand } from "../protocols/Aws_query";
1014
import { ServiceInputTypes, ServiceOutputTypes, SNSClientResolvedConfig } from "../SNSClient";
1115

@@ -94,7 +98,7 @@ export class CheckIfPhoneNumberIsOptedOutCommand extends $Command
9498
})
9599
.s("AmazonSimpleNotificationService", "CheckIfPhoneNumberIsOptedOut", {})
96100
.n("SNSClient", "CheckIfPhoneNumberIsOptedOutCommand")
97-
.f(void 0, void 0)
101+
.f(CheckIfPhoneNumberIsOptedOutInputFilterSensitiveLog, void 0)
98102
.ser(se_CheckIfPhoneNumberIsOptedOutCommand)
99103
.de(de_CheckIfPhoneNumberIsOptedOutCommand)
100104
.build() {}

clients/client-sns/src/commands/CreatePlatformApplicationCommand.ts

+10-2
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,19 @@ export interface CreatePlatformApplicationCommandOutput extends CreatePlatformAp
5656
* <code>PlatformCredential</code> is <code>signing key</code>.</p>
5757
* </li>
5858
* <li>
59-
* <p>For <code>GCM</code> (Firebase Cloud Messaging), there is no
60-
* <code>PlatformPrincipal</code> and the <code>PlatformCredential</code> is
59+
* <p>For GCM (Firebase Cloud Messaging) using key credentials, there is no
60+
* <code>PlatformPrincipal</code>. The <code>PlatformCredential</code> is
6161
* <code>API key</code>.</p>
6262
* </li>
6363
* <li>
64+
* <p>For GCM (Firebase Cloud Messaging) using token credentials, there is no
65+
* <code>PlatformPrincipal</code>. The <code>PlatformCredential</code> is a
66+
* JSON formatted private key file. When using the Amazon Web Services CLI, the file must be in
67+
* string format and special characters must be ignored. To format the file
68+
* correctly, Amazon SNS recommends using the following command: <code>SERVICE_JSON=`jq
69+
* @json <<< cat service.json`</code>.</p>
70+
* </li>
71+
* <li>
6472
* <p>For <code>MPNS</code>, <code>PlatformPrincipal</code> is <code>TLS
6573
* certificate</code> and <code>PlatformCredential</code> is <code>private
6674
* key</code>.</p>

clients/client-sns/src/commands/CreateSMSSandboxPhoneNumberCommand.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ import { Command as $Command } from "@smithy/smithy-client";
55
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { commonParams } from "../endpoint/EndpointParameters";
8-
import { CreateSMSSandboxPhoneNumberInput, CreateSMSSandboxPhoneNumberResult } from "../models/models_0";
8+
import {
9+
CreateSMSSandboxPhoneNumberInput,
10+
CreateSMSSandboxPhoneNumberInputFilterSensitiveLog,
11+
CreateSMSSandboxPhoneNumberResult,
12+
} from "../models/models_0";
913
import { de_CreateSMSSandboxPhoneNumberCommand, se_CreateSMSSandboxPhoneNumberCommand } from "../protocols/Aws_query";
1014
import { ServiceInputTypes, ServiceOutputTypes, SNSClientResolvedConfig } from "../SNSClient";
1115

@@ -104,7 +108,7 @@ export class CreateSMSSandboxPhoneNumberCommand extends $Command
104108
})
105109
.s("AmazonSimpleNotificationService", "CreateSMSSandboxPhoneNumber", {})
106110
.n("SNSClient", "CreateSMSSandboxPhoneNumberCommand")
107-
.f(void 0, void 0)
111+
.f(CreateSMSSandboxPhoneNumberInputFilterSensitiveLog, void 0)
108112
.ser(se_CreateSMSSandboxPhoneNumberCommand)
109113
.de(de_CreateSMSSandboxPhoneNumberCommand)
110114
.build() {}

clients/client-sns/src/commands/DeleteSMSSandboxPhoneNumberCommand.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ import { Command as $Command } from "@smithy/smithy-client";
55
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { commonParams } from "../endpoint/EndpointParameters";
8-
import { DeleteSMSSandboxPhoneNumberInput, DeleteSMSSandboxPhoneNumberResult } from "../models/models_0";
8+
import {
9+
DeleteSMSSandboxPhoneNumberInput,
10+
DeleteSMSSandboxPhoneNumberInputFilterSensitiveLog,
11+
DeleteSMSSandboxPhoneNumberResult,
12+
} from "../models/models_0";
913
import { de_DeleteSMSSandboxPhoneNumberCommand, se_DeleteSMSSandboxPhoneNumberCommand } from "../protocols/Aws_query";
1014
import { ServiceInputTypes, ServiceOutputTypes, SNSClientResolvedConfig } from "../SNSClient";
1115

@@ -103,7 +107,7 @@ export class DeleteSMSSandboxPhoneNumberCommand extends $Command
103107
})
104108
.s("AmazonSimpleNotificationService", "DeleteSMSSandboxPhoneNumber", {})
105109
.n("SNSClient", "DeleteSMSSandboxPhoneNumberCommand")
106-
.f(void 0, void 0)
110+
.f(DeleteSMSSandboxPhoneNumberInputFilterSensitiveLog, void 0)
107111
.ser(se_DeleteSMSSandboxPhoneNumberCommand)
108112
.de(de_DeleteSMSSandboxPhoneNumberCommand)
109113
.build() {}

clients/client-sns/src/commands/ListOriginationNumbersCommand.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ import { Command as $Command } from "@smithy/smithy-client";
55
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { commonParams } from "../endpoint/EndpointParameters";
8-
import { ListOriginationNumbersRequest, ListOriginationNumbersResult } from "../models/models_0";
8+
import {
9+
ListOriginationNumbersRequest,
10+
ListOriginationNumbersResult,
11+
ListOriginationNumbersResultFilterSensitiveLog,
12+
} from "../models/models_0";
913
import { de_ListOriginationNumbersCommand, se_ListOriginationNumbersCommand } from "../protocols/Aws_query";
1014
import { ServiceInputTypes, ServiceOutputTypes, SNSClientResolvedConfig } from "../SNSClient";
1115

@@ -106,7 +110,7 @@ export class ListOriginationNumbersCommand extends $Command
106110
})
107111
.s("AmazonSimpleNotificationService", "ListOriginationNumbers", {})
108112
.n("SNSClient", "ListOriginationNumbersCommand")
109-
.f(void 0, void 0)
113+
.f(void 0, ListOriginationNumbersResultFilterSensitiveLog)
110114
.ser(se_ListOriginationNumbersCommand)
111115
.de(de_ListOriginationNumbersCommand)
112116
.build() {}

clients/client-sns/src/commands/ListPhoneNumbersOptedOutCommand.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ import { Command as $Command } from "@smithy/smithy-client";
55
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { commonParams } from "../endpoint/EndpointParameters";
8-
import { ListPhoneNumbersOptedOutInput, ListPhoneNumbersOptedOutResponse } from "../models/models_0";
8+
import {
9+
ListPhoneNumbersOptedOutInput,
10+
ListPhoneNumbersOptedOutResponse,
11+
ListPhoneNumbersOptedOutResponseFilterSensitiveLog,
12+
} from "../models/models_0";
913
import { de_ListPhoneNumbersOptedOutCommand, se_ListPhoneNumbersOptedOutCommand } from "../protocols/Aws_query";
1014
import { ServiceInputTypes, ServiceOutputTypes, SNSClientResolvedConfig } from "../SNSClient";
1115

@@ -98,7 +102,7 @@ export class ListPhoneNumbersOptedOutCommand extends $Command
98102
})
99103
.s("AmazonSimpleNotificationService", "ListPhoneNumbersOptedOut", {})
100104
.n("SNSClient", "ListPhoneNumbersOptedOutCommand")
101-
.f(void 0, void 0)
105+
.f(void 0, ListPhoneNumbersOptedOutResponseFilterSensitiveLog)
102106
.ser(se_ListPhoneNumbersOptedOutCommand)
103107
.de(de_ListPhoneNumbersOptedOutCommand)
104108
.build() {}

clients/client-sns/src/commands/ListSMSSandboxPhoneNumbersCommand.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ import { Command as $Command } from "@smithy/smithy-client";
55
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { commonParams } from "../endpoint/EndpointParameters";
8-
import { ListSMSSandboxPhoneNumbersInput, ListSMSSandboxPhoneNumbersResult } from "../models/models_0";
8+
import {
9+
ListSMSSandboxPhoneNumbersInput,
10+
ListSMSSandboxPhoneNumbersResult,
11+
ListSMSSandboxPhoneNumbersResultFilterSensitiveLog,
12+
} from "../models/models_0";
913
import { de_ListSMSSandboxPhoneNumbersCommand, se_ListSMSSandboxPhoneNumbersCommand } from "../protocols/Aws_query";
1014
import { ServiceInputTypes, ServiceOutputTypes, SNSClientResolvedConfig } from "../SNSClient";
1115

@@ -108,7 +112,7 @@ export class ListSMSSandboxPhoneNumbersCommand extends $Command
108112
})
109113
.s("AmazonSimpleNotificationService", "ListSMSSandboxPhoneNumbers", {})
110114
.n("SNSClient", "ListSMSSandboxPhoneNumbersCommand")
111-
.f(void 0, void 0)
115+
.f(void 0, ListSMSSandboxPhoneNumbersResultFilterSensitiveLog)
112116
.ser(se_ListSMSSandboxPhoneNumbersCommand)
113117
.de(de_ListSMSSandboxPhoneNumbersCommand)
114118
.build() {}

clients/client-sns/src/commands/OptInPhoneNumberCommand.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ import { Command as $Command } from "@smithy/smithy-client";
55
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { commonParams } from "../endpoint/EndpointParameters";
8-
import { OptInPhoneNumberInput, OptInPhoneNumberResponse } from "../models/models_0";
8+
import {
9+
OptInPhoneNumberInput,
10+
OptInPhoneNumberInputFilterSensitiveLog,
11+
OptInPhoneNumberResponse,
12+
} from "../models/models_0";
913
import { de_OptInPhoneNumberCommand, se_OptInPhoneNumberCommand } from "../protocols/Aws_query";
1014
import { ServiceInputTypes, ServiceOutputTypes, SNSClientResolvedConfig } from "../SNSClient";
1115

@@ -88,7 +92,7 @@ export class OptInPhoneNumberCommand extends $Command
8892
})
8993
.s("AmazonSimpleNotificationService", "OptInPhoneNumber", {})
9094
.n("SNSClient", "OptInPhoneNumberCommand")
91-
.f(void 0, void 0)
95+
.f(OptInPhoneNumberInputFilterSensitiveLog, void 0)
9296
.ser(se_OptInPhoneNumberCommand)
9397
.de(de_OptInPhoneNumberCommand)
9498
.build() {}

clients/client-sns/src/commands/PublishCommand.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Command as $Command } from "@smithy/smithy-client";
55
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { commonParams } from "../endpoint/EndpointParameters";
8-
import { PublishInput, PublishResponse } from "../models/models_0";
8+
import { PublishInput, PublishInputFilterSensitiveLog, PublishResponse } from "../models/models_0";
99
import { de_PublishCommand, se_PublishCommand } from "../protocols/Aws_query";
1010
import { ServiceInputTypes, ServiceOutputTypes, SNSClientResolvedConfig } from "../SNSClient";
1111

@@ -162,7 +162,7 @@ export class PublishCommand extends $Command
162162
})
163163
.s("AmazonSimpleNotificationService", "Publish", {})
164164
.n("SNSClient", "PublishCommand")
165-
.f(void 0, void 0)
165+
.f(PublishInputFilterSensitiveLog, void 0)
166166
.ser(se_PublishCommand)
167167
.de(de_PublishCommand)
168168
.build() {}

clients/client-sns/src/commands/VerifySMSSandboxPhoneNumberCommand.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ import { Command as $Command } from "@smithy/smithy-client";
55
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { commonParams } from "../endpoint/EndpointParameters";
8-
import { VerifySMSSandboxPhoneNumberInput, VerifySMSSandboxPhoneNumberResult } from "../models/models_0";
8+
import {
9+
VerifySMSSandboxPhoneNumberInput,
10+
VerifySMSSandboxPhoneNumberInputFilterSensitiveLog,
11+
VerifySMSSandboxPhoneNumberResult,
12+
} from "../models/models_0";
913
import { de_VerifySMSSandboxPhoneNumberCommand, se_VerifySMSSandboxPhoneNumberCommand } from "../protocols/Aws_query";
1014
import { ServiceInputTypes, ServiceOutputTypes, SNSClientResolvedConfig } from "../SNSClient";
1115

@@ -103,7 +107,7 @@ export class VerifySMSSandboxPhoneNumberCommand extends $Command
103107
})
104108
.s("AmazonSimpleNotificationService", "VerifySMSSandboxPhoneNumber", {})
105109
.n("SNSClient", "VerifySMSSandboxPhoneNumberCommand")
106-
.f(void 0, void 0)
110+
.f(VerifySMSSandboxPhoneNumberInputFilterSensitiveLog, void 0)
107111
.ser(se_VerifySMSSandboxPhoneNumberCommand)
108112
.de(de_VerifySMSSandboxPhoneNumberCommand)
109113
.build() {}

0 commit comments

Comments
 (0)