Skip to content

Commit

Permalink
feat(client-osis): SDK changes for self-managed vpc endpoint to OpenS…
Browse files Browse the repository at this point in the history
…earch ingestion pipelines.
  • Loading branch information
awstools committed Jun 12, 2024
1 parent c7523db commit ef64589
Show file tree
Hide file tree
Showing 8 changed files with 67 additions and 0 deletions.
3 changes: 3 additions & 0 deletions clients/client-osis/src/commands/CreatePipelineCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export interface CreatePipelineCommandOutput extends CreatePipelineResponse, __M
* AttachToVpc: true || false, // required
* CidrBlock: "STRING_VALUE",
* },
* VpcEndpointManagement: "CUSTOMER" || "SERVICE",
* },
* BufferOptions: { // BufferOptions
* PersistentBufferEnabled: true || false, // required
Expand Down Expand Up @@ -110,6 +111,7 @@ export interface CreatePipelineCommandOutput extends CreatePipelineResponse, __M
* // AttachToVpc: true || false, // required
* // CidrBlock: "STRING_VALUE",
* // },
* // VpcEndpointManagement: "CUSTOMER" || "SERVICE",
* // },
* // },
* // ],
Expand All @@ -119,6 +121,7 @@ export interface CreatePipelineCommandOutput extends CreatePipelineResponse, __M
* // EncryptionAtRestOptions: { // EncryptionAtRestOptions
* // KmsKeyArn: "STRING_VALUE", // required
* // },
* // VpcEndpointService: "STRING_VALUE",
* // ServiceVpcEndpoints: [ // ServiceVpcEndpointsList
* // { // ServiceVpcEndpoint
* // ServiceName: "OPENSEARCH_SERVERLESS",
Expand Down
2 changes: 2 additions & 0 deletions clients/client-osis/src/commands/GetPipelineCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export interface GetPipelineCommandOutput extends GetPipelineResponse, __Metadat
* // AttachToVpc: true || false, // required
* // CidrBlock: "STRING_VALUE",
* // },
* // VpcEndpointManagement: "CUSTOMER" || "SERVICE",
* // },
* // },
* // ],
Expand All @@ -86,6 +87,7 @@ export interface GetPipelineCommandOutput extends GetPipelineResponse, __Metadat
* // EncryptionAtRestOptions: { // EncryptionAtRestOptions
* // KmsKeyArn: "STRING_VALUE", // required
* // },
* // VpcEndpointService: "STRING_VALUE",
* // ServiceVpcEndpoints: [ // ServiceVpcEndpointsList
* // { // ServiceVpcEndpoint
* // ServiceName: "OPENSEARCH_SERVERLESS",
Expand Down
2 changes: 2 additions & 0 deletions clients/client-osis/src/commands/StartPipelineCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export interface StartPipelineCommandOutput extends StartPipelineResponse, __Met
* // AttachToVpc: true || false, // required
* // CidrBlock: "STRING_VALUE",
* // },
* // VpcEndpointManagement: "CUSTOMER" || "SERVICE",
* // },
* // },
* // ],
Expand All @@ -86,6 +87,7 @@ export interface StartPipelineCommandOutput extends StartPipelineResponse, __Met
* // EncryptionAtRestOptions: { // EncryptionAtRestOptions
* // KmsKeyArn: "STRING_VALUE", // required
* // },
* // VpcEndpointService: "STRING_VALUE",
* // ServiceVpcEndpoints: [ // ServiceVpcEndpointsList
* // { // ServiceVpcEndpoint
* // ServiceName: "OPENSEARCH_SERVERLESS",
Expand Down
2 changes: 2 additions & 0 deletions clients/client-osis/src/commands/StopPipelineCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export interface StopPipelineCommandOutput extends StopPipelineResponse, __Metad
* // AttachToVpc: true || false, // required
* // CidrBlock: "STRING_VALUE",
* // },
* // VpcEndpointManagement: "CUSTOMER" || "SERVICE",
* // },
* // },
* // ],
Expand All @@ -86,6 +87,7 @@ export interface StopPipelineCommandOutput extends StopPipelineResponse, __Metad
* // EncryptionAtRestOptions: { // EncryptionAtRestOptions
* // KmsKeyArn: "STRING_VALUE", // required
* // },
* // VpcEndpointService: "STRING_VALUE",
* // ServiceVpcEndpoints: [ // ServiceVpcEndpointsList
* // { // ServiceVpcEndpoint
* // ServiceName: "OPENSEARCH_SERVERLESS",
Expand Down
2 changes: 2 additions & 0 deletions clients/client-osis/src/commands/UpdatePipelineCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineResponse, __M
* // AttachToVpc: true || false, // required
* // CidrBlock: "STRING_VALUE",
* // },
* // VpcEndpointManagement: "CUSTOMER" || "SERVICE",
* // },
* // },
* // ],
Expand All @@ -101,6 +102,7 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineResponse, __M
* // EncryptionAtRestOptions: { // EncryptionAtRestOptions
* // KmsKeyArn: "STRING_VALUE", // required
* // },
* // VpcEndpointService: "STRING_VALUE",
* // ServiceVpcEndpoints: [ // ServiceVpcEndpointsList
* // { // ServiceVpcEndpoint
* // ServiceName: "OPENSEARCH_SERVERLESS",
Expand Down
26 changes: 26 additions & 0 deletions clients/client-osis/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,20 @@ export interface VpcAttachmentOptions {
CidrBlock?: string;
}

/**
* @public
* @enum
*/
export const VpcEndpointManagement = {
CUSTOMER: "CUSTOMER",
SERVICE: "SERVICE",
} as const;

/**
* @public
*/
export type VpcEndpointManagement = (typeof VpcEndpointManagement)[keyof typeof VpcEndpointManagement];

/**
* <p>Options that specify the subnets and security groups for an OpenSearch Ingestion
* VPC endpoint.</p>
Expand All @@ -146,6 +160,12 @@ export interface VpcOptions {
* @public
*/
VpcAttachmentOptions?: VpcAttachmentOptions;

/**
* <p>Defines whether you or Amazon OpenSearch Ingestion service create and manage the VPC endpoint configured for the pipeline.</p>
* @public
*/
VpcEndpointManagement?: VpcEndpointManagement;
}

/**
Expand Down Expand Up @@ -410,6 +430,12 @@ export interface Pipeline {
*/
EncryptionAtRestOptions?: EncryptionAtRestOptions;

/**
* <p>The VPC endpoint service name for the pipeline.</p>
* @public
*/
VpcEndpointService?: string;

/**
* <p>A list of VPC endpoints that OpenSearch Ingestion has created to other Amazon Web Services services.</p>
* @public
Expand Down
1 change: 1 addition & 0 deletions clients/client-osis/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -964,6 +964,7 @@ const de_Pipeline = (output: any, context: __SerdeContext): Pipeline => {
Status: __expectString,
StatusReason: _json,
Tags: _json,
VpcEndpointService: __expectString,
VpcEndpoints: _json,
}) as any;
};
Expand Down
29 changes: 29 additions & 0 deletions codegen/sdk-codegen/aws-models/osis.json
Original file line number Diff line number Diff line change
Expand Up @@ -1773,6 +1773,12 @@
"EncryptionAtRestOptions": {
"target": "com.amazonaws.osis#EncryptionAtRestOptions"
},
"VpcEndpointService": {
"target": "com.amazonaws.osis#String",
"traits": {
"smithy.api#documentation": "<p>The VPC endpoint service name for the pipeline.</p>"
}
},
"ServiceVpcEndpoints": {
"target": "com.amazonaws.osis#ServiceVpcEndpointsList",
"traits": {
Expand Down Expand Up @@ -2761,6 +2767,23 @@
"smithy.api#documentation": "<p>An OpenSearch Ingestion-managed VPC endpoint that will access one or more\n pipelines.</p>"
}
},
"com.amazonaws.osis#VpcEndpointManagement": {
"type": "enum",
"members": {
"CUSTOMER": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "CUSTOMER"
}
},
"SERVICE": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "SERVICE"
}
}
}
},
"com.amazonaws.osis#VpcEndpointServiceName": {
"type": "enum",
"members": {
Expand Down Expand Up @@ -2799,6 +2822,12 @@
"traits": {
"smithy.api#documentation": "<p>Options for attaching a VPC to a pipeline.</p>"
}
},
"VpcEndpointManagement": {
"target": "com.amazonaws.osis#VpcEndpointManagement",
"traits": {
"smithy.api#documentation": "<p>Defines whether you or Amazon OpenSearch Ingestion service create and manage the VPC endpoint configured for the pipeline.</p>"
}
}
},
"traits": {
Expand Down

0 comments on commit ef64589

Please sign in to comment.