diff --git a/clients/client-ssm/src/commands/DescribeInstanceInformationCommand.ts b/clients/client-ssm/src/commands/DescribeInstanceInformationCommand.ts index 48498fe0bd23..2e4b45b626c4 100644 --- a/clients/client-ssm/src/commands/DescribeInstanceInformationCommand.ts +++ b/clients/client-ssm/src/commands/DescribeInstanceInformationCommand.ts @@ -5,7 +5,11 @@ import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { DescribeInstanceInformationRequest, DescribeInstanceInformationResult } from "../models/models_0"; +import { + DescribeInstanceInformationRequest, + DescribeInstanceInformationResult, + DescribeInstanceInformationResultFilterSensitiveLog, +} from "../models/models_0"; import { de_DescribeInstanceInformationCommand, se_DescribeInstanceInformationCommand } from "../protocols/Aws_json1_1"; import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; @@ -164,7 +168,7 @@ export class DescribeInstanceInformationCommand extends $Command }) .s("AmazonSSM", "DescribeInstanceInformation", {}) .n("SSMClient", "DescribeInstanceInformationCommand") - .f(void 0, void 0) + .f(void 0, DescribeInstanceInformationResultFilterSensitiveLog) .ser(se_DescribeInstanceInformationCommand) .de(de_DescribeInstanceInformationCommand) .build() {} diff --git a/clients/client-ssm/src/commands/DescribeInstancePropertiesCommand.ts b/clients/client-ssm/src/commands/DescribeInstancePropertiesCommand.ts index 59b7f7a33f10..1d00c1d8cb80 100644 --- a/clients/client-ssm/src/commands/DescribeInstancePropertiesCommand.ts +++ b/clients/client-ssm/src/commands/DescribeInstancePropertiesCommand.ts @@ -5,7 +5,11 @@ import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { DescribeInstancePropertiesRequest, DescribeInstancePropertiesResult } from "../models/models_0"; +import { + DescribeInstancePropertiesRequest, + DescribeInstancePropertiesResult, + DescribeInstancePropertiesResultFilterSensitiveLog, +} from "../models/models_0"; import { de_DescribeInstancePropertiesCommand, se_DescribeInstancePropertiesCommand } from "../protocols/Aws_json1_1"; import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; @@ -168,7 +172,7 @@ export class DescribeInstancePropertiesCommand extends $Command }) .s("AmazonSSM", "DescribeInstanceProperties", {}) .n("SSMClient", "DescribeInstancePropertiesCommand") - .f(void 0, void 0) + .f(void 0, DescribeInstancePropertiesResultFilterSensitiveLog) .ser(se_DescribeInstancePropertiesCommand) .de(de_DescribeInstancePropertiesCommand) .build() {} diff --git a/clients/client-ssm/src/models/models_0.ts b/clients/client-ssm/src/models/models_0.ts index 93c45123c1e2..853ea2f1f3a8 100644 --- a/clients/client-ssm/src/models/models_0.ts +++ b/clients/client-ssm/src/models/models_0.ts @@ -9647,6 +9647,24 @@ export const DescribeAssociationResultFilterSensitiveLog = (obj: DescribeAssocia }), }); +/** + * @internal + */ +export const InstanceInformationFilterSensitiveLog = (obj: InstanceInformation): any => ({ + ...obj, + ...(obj.IPAddress && { IPAddress: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const DescribeInstanceInformationResultFilterSensitiveLog = (obj: DescribeInstanceInformationResult): any => ({ + ...obj, + ...(obj.InstanceInformationList && { + InstanceInformationList: obj.InstanceInformationList.map((item) => InstanceInformationFilterSensitiveLog(item)), + }), +}); + /** * @internal */ @@ -9677,6 +9695,24 @@ export const DescribeInstancePatchStatesForPatchGroupResultFilterSensitiveLog = }), }); +/** + * @internal + */ +export const InstancePropertyFilterSensitiveLog = (obj: InstanceProperty): any => ({ + ...obj, + ...(obj.IPAddress && { IPAddress: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const DescribeInstancePropertiesResultFilterSensitiveLog = (obj: DescribeInstancePropertiesResult): any => ({ + ...obj, + ...(obj.InstanceProperties && { + InstanceProperties: obj.InstanceProperties.map((item) => InstancePropertyFilterSensitiveLog(item)), + }), +}); + /** * @internal */ diff --git a/codegen/sdk-codegen/aws-models/ssm.json b/codegen/sdk-codegen/aws-models/ssm.json index 9147e3f158a8..d5a27f60c35d 100644 --- a/codegen/sdk-codegen/aws-models/ssm.json +++ b/codegen/sdk-codegen/aws-models/ssm.json @@ -14454,7 +14454,8 @@ "smithy.api#length": { "min": 1, "max": 46 - } + }, + "smithy.api#sensitive": {} } }, "com.amazonaws.ssm#ISO8601String": {