From eef18d9a08ffe12d2757be67a49e8a97f0f5cce5 Mon Sep 17 00:00:00 2001 From: Carlos Vega Date: Sat, 31 Dec 2022 17:27:36 -0300 Subject: [PATCH 1/3] Fix AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails to support Service Connect --- .changes/next-release/bugfix-ecs-fe04eed4.json | 5 +++++ apis/securityhub-2018-10-26.normal.json | 8 ++++++++ clients/securityhub.d.ts | 9 +++++++++ 3 files changed, 22 insertions(+) create mode 100644 .changes/next-release/bugfix-ecs-fe04eed4.json diff --git a/.changes/next-release/bugfix-ecs-fe04eed4.json b/.changes/next-release/bugfix-ecs-fe04eed4.json new file mode 100644 index 0000000000..84b2113f3a --- /dev/null +++ b/.changes/next-release/bugfix-ecs-fe04eed4.json @@ -0,0 +1,5 @@ +{ + "type": "bugfix", + "category": "ecs", + "description": "adds the missing appProtocol and name parameters to the AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails type definition in order to support Service Connect." +} \ No newline at end of file diff --git a/apis/securityhub-2018-10-26.normal.json b/apis/securityhub-2018-10-26.normal.json index 6a49917d27..6f8941e956 100644 --- a/apis/securityhub-2018-10-26.normal.json +++ b/apis/securityhub-2018-10-26.normal.json @@ -7367,6 +7367,10 @@ "AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails": { "type": "structure", "members": { + "AppProtocol": { + "shape": "AppProtocol", + "documentation": "

The application protocol that's used for the port mapping. This parameter only applies to Service Connect.

" + }, "ContainerPort": { "shape": "Integer", "documentation": "

The port number on the container that is bound to the user-specified or automatically assigned host port.

" @@ -7375,6 +7379,10 @@ "shape": "Integer", "documentation": "

The port number on the container instance to reserve for the container.

" }, + "Name": { + "shape": "NonEmptyString", + "documentation": "

The name that's used for the port mapping. This parameter only applies to Service Connect.

" + }, "Protocol": { "shape": "NonEmptyString", "documentation": "

The protocol used for the port mapping. The default is tcp.

" diff --git a/clients/securityhub.d.ts b/clients/securityhub.d.ts index e1a6729d92..67c2e7166c 100644 --- a/clients/securityhub.d.ts +++ b/clients/securityhub.d.ts @@ -4932,7 +4932,12 @@ declare namespace SecurityHub { SourceVolume?: NonEmptyString; } export type AwsEcsTaskDefinitionContainerDefinitionsMountPointsList = AwsEcsTaskDefinitionContainerDefinitionsMountPointsDetails[]; + export type AppProtocol = "http" | "http2" | "grpc"; export interface AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails { + /** + * The application protocol that's used for the port mapping. This parameter only applies to Service Connect. + */ + AppProtocol?: AppProtocol; /** * The port number on the container that is bound to the user-specified or automatically assigned host port. */ @@ -4941,6 +4946,10 @@ declare namespace SecurityHub { * The port number on the container instance to reserve for the container. */ HostPort?: Integer; + /** + * The name that's used for the port mapping. This parameter only applies to Service Connect. + */ + Name?: NonEmptyString; /** * The protocol used for the port mapping. The default is tcp. */ From f219d1c3a0d80523293c325037fb3dd5a6759aef Mon Sep 17 00:00:00 2001 From: Carlos Vega Date: Sat, 31 Dec 2022 18:37:21 -0300 Subject: [PATCH 2/3] correct version --- apis/securityhub-2018-10-26.normal.json | 16 ++++++++++++++++ clients/securityhub.d.ts | 9 +++++++++ 2 files changed, 25 insertions(+) diff --git a/apis/securityhub-2018-10-26.normal.json b/apis/securityhub-2018-10-26.normal.json index 6a49917d27..23dc03e7d6 100644 --- a/apis/securityhub-2018-10-26.normal.json +++ b/apis/securityhub-2018-10-26.normal.json @@ -7364,9 +7364,21 @@ "shape": "AwsEcsTaskDefinitionContainerDefinitionsMountPointsDetails" } }, + "AppProtocol": { + "type": "string", + "enum": [ + "http", + "http2", + "grpc" + ] + }, "AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails": { "type": "structure", "members": { + "AppProtocol": { + "shape": "AppProtocol", + "documentation": "

The application protocol that's used for the port mapping. This parameter only applies to Service Connect.

" + }, "ContainerPort": { "shape": "Integer", "documentation": "

The port number on the container that is bound to the user-specified or automatically assigned host port.

" @@ -7375,6 +7387,10 @@ "shape": "Integer", "documentation": "

The port number on the container instance to reserve for the container.

" }, + "Name": { + "shape": "NonEmptyString", + "documentation": "

The name that's used for the port mapping. This parameter only applies to Service Connect.

" + }, "Protocol": { "shape": "NonEmptyString", "documentation": "

The protocol used for the port mapping. The default is tcp.

" diff --git a/clients/securityhub.d.ts b/clients/securityhub.d.ts index e1a6729d92..e061509aa6 100644 --- a/clients/securityhub.d.ts +++ b/clients/securityhub.d.ts @@ -4932,7 +4932,12 @@ declare namespace SecurityHub { SourceVolume?: NonEmptyString; } export type AwsEcsTaskDefinitionContainerDefinitionsMountPointsList = AwsEcsTaskDefinitionContainerDefinitionsMountPointsDetails[]; + export type AppProtocol = "http"|"http2"|"grpc"|string; export interface AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails { + /** + * The application protocol that's used for the port mapping. This parameter only applies to Service Connect. + */ + AppProtocol?: AppProtocol; /** * The port number on the container that is bound to the user-specified or automatically assigned host port. */ @@ -4941,6 +4946,10 @@ declare namespace SecurityHub { * The port number on the container instance to reserve for the container. */ HostPort?: Integer; + /** + * The name that's used for the port mapping. This parameter only applies to Service Connect. + */ + Name?: NonEmptyString; /** * The protocol used for the port mapping. The default is tcp. */ From 868de853d0406c037199155377d8cf0d2f4cb789 Mon Sep 17 00:00:00 2001 From: Carlos Vega Date: Sat, 31 Dec 2022 18:50:02 -0300 Subject: [PATCH 3/3] restore original format --- clients/securityhub.d.ts | 76 ++++++++++++++++++++-------------------- 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/clients/securityhub.d.ts b/clients/securityhub.d.ts index 8211ba45dc..e061509aa6 100644 --- a/clients/securityhub.d.ts +++ b/clients/securityhub.d.ts @@ -1,10 +1,10 @@ -import { Request } from '../lib/request'; -import { Response } from '../lib/response'; -import { AWSError } from '../lib/error'; -import { Service } from '../lib/service'; -import { ServiceConfigurationOptions } from '../lib/service'; -import { ConfigBase as Config } from '../lib/config-base'; -interface Blob { } +import {Request} from '../lib/request'; +import {Response} from '../lib/response'; +import {AWSError} from '../lib/error'; +import {Service} from '../lib/service'; +import {ServiceConfigurationOptions} from '../lib/service'; +import {ConfigBase as Config} from '../lib/config-base'; +interface Blob {} declare class SecurityHub extends Service { /** * Constructs a service object. This object has one method for each API operation. @@ -605,10 +605,10 @@ declare namespace SecurityHub { Status?: AdminStatus; } export type AdminAccounts = AdminAccount[]; - export type AdminStatus = "ENABLED" | "DISABLE_IN_PROGRESS" | string; + export type AdminStatus = "ENABLED"|"DISABLE_IN_PROGRESS"|string; export type AdminsMaxResults = number; export type ArnList = NonEmptyString[]; - export type AutoEnableStandards = "NONE" | "DEFAULT" | string; + export type AutoEnableStandards = "NONE"|"DEFAULT"|string; export interface AvailabilityZone { /** * The name of the Availability Zone. @@ -4932,7 +4932,7 @@ declare namespace SecurityHub { SourceVolume?: NonEmptyString; } export type AwsEcsTaskDefinitionContainerDefinitionsMountPointsList = AwsEcsTaskDefinitionContainerDefinitionsMountPointsDetails[]; - export type AppProtocol = "http" | "http2" | "grpc" | string; + export type AppProtocol = "http"|"http2"|"grpc"|string; export interface AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails { /** * The application protocol that's used for the port mapping. This parameter only applies to Service Connect. @@ -6083,7 +6083,7 @@ declare namespace SecurityHub { */ UserName?: NonEmptyString; } - export type AwsIamAccessKeyStatus = "Active" | "Inactive" | string; + export type AwsIamAccessKeyStatus = "Active"|"Inactive"|string; export interface AwsIamAttachedManagedPolicy { /** * The name of the policy. @@ -8580,7 +8580,7 @@ declare namespace SecurityHub { */ Value?: NonEmptyString; } - export type AwsS3BucketNotificationConfigurationS3KeyFilterRuleName = "Prefix" | "Suffix" | string; + export type AwsS3BucketNotificationConfigurationS3KeyFilterRuleName = "Prefix"|"Suffix"|string; export type AwsS3BucketNotificationConfigurationS3KeyFilterRules = AwsS3BucketNotificationConfigurationS3KeyFilterRule[]; export interface AwsS3BucketServerSideEncryptionByDefault { /** @@ -10317,7 +10317,7 @@ declare namespace SecurityHub { */ StatusReasons?: StatusReasonsList; } - export type ComplianceStatus = "PASSED" | "WARNING" | "FAILED" | "NOT_AVAILABLE" | string; + export type ComplianceStatus = "PASSED"|"WARNING"|"FAILED"|"NOT_AVAILABLE"|string; export interface ContainerDetails { /** * The runtime of the container. @@ -10348,7 +10348,7 @@ declare namespace SecurityHub { */ Privileged?: Boolean; } - export type ControlStatus = "ENABLED" | "DISABLED" | string; + export type ControlStatus = "ENABLED"|"DISABLED"|string; export interface Country { /** * The 2-letter ISO 3166 country code for the country. @@ -10527,7 +10527,7 @@ declare namespace SecurityHub { */ Unit?: DateRangeUnit; } - export type DateRangeUnit = "DAYS" | string; + export type DateRangeUnit = "DAYS"|string; export interface DeclineInvitationsRequest { /** * The list of account IDs for the accounts from which to decline the invitations to Security Hub. @@ -10807,7 +10807,7 @@ declare namespace SecurityHub { } export interface EnableSecurityHubResponse { } - export type FieldMap = { [key: string]: NonEmptyString }; + export type FieldMap = {[key: string]: NonEmptyString}; export type FilePathList = FilePaths[]; export interface FilePaths { /** @@ -11147,7 +11147,7 @@ declare namespace SecurityHub { } export type Integer = number; export type IntegerList = Integer[]; - export type IntegrationType = "SEND_FINDINGS_TO_SECURITY_HUB" | "RECEIVE_FINDINGS_FROM_SECURITY_HUB" | "UPDATE_FINDINGS_IN_SECURITY_HUB" | string; + export type IntegrationType = "SEND_FINDINGS_TO_SECURITY_HUB"|"RECEIVE_FINDINGS_FROM_SECURITY_HUB"|"UPDATE_FINDINGS_IN_SECURITY_HUB"|string; export type IntegrationTypeList = IntegrationType[]; export interface Invitation { /** @@ -11373,8 +11373,8 @@ declare namespace SecurityHub { State?: MalwareState; } export type MalwareList = Malware[]; - export type MalwareState = "OBSERVED" | "REMOVAL_FAILED" | "REMOVED" | string; - export type MalwareType = "ADWARE" | "BLENDED_THREAT" | "BOTNET_AGENT" | "COIN_MINER" | "EXPLOIT_KIT" | "KEYLOGGER" | "MACRO" | "POTENTIALLY_UNWANTED" | "SPYWARE" | "RANSOMWARE" | "REMOTE_ACCESS" | "ROOTKIT" | "TROJAN" | "VIRUS" | "WORM" | string; + export type MalwareState = "OBSERVED"|"REMOVAL_FAILED"|"REMOVED"|string; + export type MalwareType = "ADWARE"|"BLENDED_THREAT"|"BOTNET_AGENT"|"COIN_MINER"|"EXPLOIT_KIT"|"KEYLOGGER"|"MACRO"|"POTENTIALLY_UNWANTED"|"SPYWARE"|"RANSOMWARE"|"REMOTE_ACCESS"|"ROOTKIT"|"TROJAN"|"VIRUS"|"WORM"|string; export interface MapFilter { /** * The key of the map filter. For example, for ResourceTags, Key identifies the name of the tag. For UserDefinedFields, Key is the name of the field. @@ -11389,7 +11389,7 @@ declare namespace SecurityHub { */ Comparison?: MapFilterComparison; } - export type MapFilterComparison = "EQUALS" | "NOT_EQUALS" | string; + export type MapFilterComparison = "EQUALS"|"NOT_EQUALS"|string; export type MapFilterList = MapFilter[]; export type MaxResults = number; export interface Member { @@ -11499,7 +11499,7 @@ declare namespace SecurityHub { */ Blocked?: Boolean; } - export type NetworkDirection = "IN" | "OUT" | string; + export type NetworkDirection = "IN"|"OUT"|string; export interface NetworkHeader { /** * The protocol used for the component. @@ -11622,7 +11622,7 @@ declare namespace SecurityHub { OffsetRange?: Range; } export type Pages = Page[]; - export type Partition = "aws" | "aws-cn" | "aws-us-gov" | string; + export type Partition = "aws"|"aws-cn"|"aws-us-gov"|string; export interface PatchSummary { /** * The identifier of the compliance standard that was used to determine the patch compliance status. @@ -11817,7 +11817,7 @@ declare namespace SecurityHub { */ RecordIndex?: Long; } - export type RecordState = "ACTIVE" | "ARCHIVED" | string; + export type RecordState = "ACTIVE"|"ARCHIVED"|string; export type Records = Record[]; export interface RelatedFinding { /** @@ -12488,8 +12488,8 @@ declare namespace SecurityHub { */ Original?: NonEmptyString; } - export type SeverityLabel = "INFORMATIONAL" | "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | string; - export type SeverityRating = "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | string; + export type SeverityLabel = "INFORMATIONAL"|"LOW"|"MEDIUM"|"HIGH"|"CRITICAL"|string; + export type SeverityRating = "LOW"|"MEDIUM"|"HIGH"|"CRITICAL"|string; export interface SeverityUpdate { /** * The normalized severity for the finding. This attribute is to be deprecated in favor of Label. If you provide Normalized and do not provide Label, Label is set automatically as follows. 0 - INFORMATIONAL 1–39 - LOW 40–69 - MEDIUM 70–89 - HIGH 90–100 - CRITICAL @@ -12563,7 +12563,7 @@ declare namespace SecurityHub { */ SortOrder?: SortOrder; } - export type SortOrder = "asc" | "desc" | string; + export type SortOrder = "asc"|"desc"|string; export interface Standard { /** * The ARN of a standard. @@ -12630,7 +12630,7 @@ declare namespace SecurityHub { RelatedRequirements?: RelatedRequirementsList; } export type StandardsControls = StandardsControl[]; - export type StandardsInputParameterMap = { [key: string]: NonEmptyString }; + export type StandardsInputParameterMap = {[key: string]: NonEmptyString}; export interface StandardsManagedBy { /** * An identifier for the company that manages a specific security standard. For existing standards, the value is equal to Amazon Web Services. @@ -12641,7 +12641,7 @@ declare namespace SecurityHub { */ Product?: NonEmptyString; } - export type StandardsStatus = "PENDING" | "READY" | "FAILED" | "DELETING" | "INCOMPLETE" | string; + export type StandardsStatus = "PENDING"|"READY"|"FAILED"|"DELETING"|"INCOMPLETE"|string; export interface StandardsStatusReason { /** * The reason code that represents the reason for the current status of a standard subscription. @@ -12712,7 +12712,7 @@ declare namespace SecurityHub { */ Description?: NonEmptyString; } - export type StatusReasonCode = "NO_AVAILABLE_CONFIGURATION_RECORDER" | "INTERNAL_ERROR" | string; + export type StatusReasonCode = "NO_AVAILABLE_CONFIGURATION_RECORDER"|"INTERNAL_ERROR"|string; export type StatusReasonsList = StatusReason[]; export interface StringFilter { /** @@ -12724,12 +12724,12 @@ declare namespace SecurityHub { */ Comparison?: StringFilterComparison; } - export type StringFilterComparison = "EQUALS" | "PREFIX" | "NOT_EQUALS" | "PREFIX_NOT_EQUALS" | string; + export type StringFilterComparison = "EQUALS"|"PREFIX"|"NOT_EQUALS"|"PREFIX_NOT_EQUALS"|string; export type StringFilterList = StringFilter[]; export type StringList = NonEmptyString[]; export type TagKey = string; export type TagKeyList = TagKey[]; - export type TagMap = { [key: string]: TagValue }; + export type TagMap = {[key: string]: TagValue}; export interface TagResourceRequest { /** * The ARN of the resource to apply the tags to. @@ -12787,9 +12787,9 @@ declare namespace SecurityHub { */ SourceUrl?: NonEmptyString; } - export type ThreatIntelIndicatorCategory = "BACKDOOR" | "CARD_STEALER" | "COMMAND_AND_CONTROL" | "DROP_SITE" | "EXPLOIT_SITE" | "KEYLOGGER" | string; + export type ThreatIntelIndicatorCategory = "BACKDOOR"|"CARD_STEALER"|"COMMAND_AND_CONTROL"|"DROP_SITE"|"EXPLOIT_SITE"|"KEYLOGGER"|string; export type ThreatIntelIndicatorList = ThreatIntelIndicator[]; - export type ThreatIntelIndicatorType = "DOMAIN" | "EMAIL_ADDRESS" | "HASH_MD5" | "HASH_SHA1" | "HASH_SHA256" | "HASH_SHA512" | "IPV4_ADDRESS" | "IPV6_ADDRESS" | "MUTEX" | "PROCESS" | "URL" | string; + export type ThreatIntelIndicatorType = "DOMAIN"|"EMAIL_ADDRESS"|"HASH_MD5"|"HASH_SHA1"|"HASH_SHA256"|"HASH_SHA512"|"IPV4_ADDRESS"|"IPV6_ADDRESS"|"MUTEX"|"PROCESS"|"URL"|string; export type ThreatList = Threat[]; export type Timestamp = Date; export type TypeList = NonEmptyString[]; @@ -12925,7 +12925,7 @@ declare namespace SecurityHub { } export interface UpdateStandardsControlResponse { } - export type VerificationState = "UNKNOWN" | "TRUE_POSITIVE" | "FALSE_POSITIVE" | "BENIGN_POSITIVE" | string; + export type VerificationState = "UNKNOWN"|"TRUE_POSITIVE"|"FALSE_POSITIVE"|"BENIGN_POSITIVE"|string; export interface VolumeMount { /** * The name of the volume. @@ -12995,7 +12995,7 @@ declare namespace SecurityHub { */ FixAvailable?: VulnerabilityFixAvailable; } - export type VulnerabilityFixAvailable = "YES" | "NO" | "PARTIAL" | string; + export type VulnerabilityFixAvailable = "YES"|"NO"|"PARTIAL"|string; export type VulnerabilityList = Vulnerability[]; export interface VulnerabilityVendor { /** @@ -13044,8 +13044,8 @@ declare namespace SecurityHub { */ Status?: WorkflowStatus; } - export type WorkflowState = "NEW" | "ASSIGNED" | "IN_PROGRESS" | "DEFERRED" | "RESOLVED" | string; - export type WorkflowStatus = "NEW" | "NOTIFIED" | "RESOLVED" | "SUPPRESSED" | string; + export type WorkflowState = "NEW"|"ASSIGNED"|"IN_PROGRESS"|"DEFERRED"|"RESOLVED"|string; + export type WorkflowStatus = "NEW"|"NOTIFIED"|"RESOLVED"|"SUPPRESSED"|string; export interface WorkflowUpdate { /** * The status of the investigation into the finding. The workflow status is specific to an individual finding. It does not affect the generation of new findings. For example, setting the workflow status to SUPPRESSED or RESOLVED does not prevent a new finding for the same issue. The allowed values are the following. NEW - The initial state of a finding, before it is reviewed. Security Hub also resets WorkFlowStatus from NOTIFIED or RESOLVED to NEW in the following cases: The record state changes from ARCHIVED to ACTIVE. The compliance status changes from PASSED to either WARNING, FAILED, or NOT_AVAILABLE. NOTIFIED - Indicates that you notified the resource owner about the security issue. Used when the initial reviewer is not the resource owner, and needs intervention from the resource owner. RESOLVED - The finding was reviewed and remediated and is now considered resolved. SUPPRESSED - Indicates that you reviewed the finding and do not believe that any action is needed. The finding is no longer updated. @@ -13055,7 +13055,7 @@ declare namespace SecurityHub { /** * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version. */ - export type apiVersion = "2018-10-26" | "latest" | string; + export type apiVersion = "2018-10-26"|"latest"|string; export interface ClientApiVersions { /** * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.