From 95f3ff979d02ced81559cc9a6d6c08b240974953 Mon Sep 17 00:00:00 2001 From: Sharon Nam Date: Tue, 22 Aug 2023 13:57:38 -0700 Subject: [PATCH] Running setup to new service aws_lexv2 --- .github/labeler-issue-triage.yml | 2 +- go.mod | 1 + go.sum | 2 ++ internal/conns/awsclient_gen.go | 5 +++++ names/consts_gen.go | 1 + names/names_data.csv | 2 +- website/allowed-subcategories.txt | 1 + website/docs/guides/custom-service-endpoints.html.md | 1 + 8 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/labeler-issue-triage.yml b/.github/labeler-issue-triage.yml index c46d14ec6b4..3aed81ff203 100644 --- a/.github/labeler-issue-triage.yml +++ b/.github/labeler-issue-triage.yml @@ -378,7 +378,7 @@ service/lambda: service/lexmodels: - '((\*|-)\s*`?|(data|resource)\s+"?)aws_lex_' service/lexmodelsv2: - - '((\*|-)\s*`?|(data|resource)\s+"?)aws_lexmodelsv2_' + - '((\*|-)\s*`?|(data|resource)\s+"?)aws_lexv2models_' service/lexruntime: - '((\*|-)\s*`?|(data|resource)\s+"?)aws_lexruntime_' service/lexruntimev2: diff --git a/go.mod b/go.mod index 8dd429d9d5b..5292db4e562 100644 --- a/go.mod +++ b/go.mod @@ -35,6 +35,7 @@ require ( github.com/aws/aws-sdk-go-v2/service/kendra v1.42.5 github.com/aws/aws-sdk-go-v2/service/keyspaces v1.4.5 github.com/aws/aws-sdk-go-v2/service/lambda v1.39.5 + github.com/aws/aws-sdk-go-v2/service/lexmodelsv2 v1.32.5 github.com/aws/aws-sdk-go-v2/service/lightsail v1.28.5 github.com/aws/aws-sdk-go-v2/service/medialive v1.34.4 github.com/aws/aws-sdk-go-v2/service/mediapackage v1.23.3 diff --git a/go.sum b/go.sum index dc97eb30a85..0459eb05820 100644 --- a/go.sum +++ b/go.sum @@ -108,6 +108,8 @@ github.com/aws/aws-sdk-go-v2/service/keyspaces v1.4.5 h1:Z4qTRZdPJHmd5yGdY/4dL71 github.com/aws/aws-sdk-go-v2/service/keyspaces v1.4.5/go.mod h1:q+dIzmt9fMxRXiTFs8dlIvHtmor246UzM82hW5Gpz0U= github.com/aws/aws-sdk-go-v2/service/lambda v1.39.5 h1:uMvxJFS92hNW6BRX0Ou+5zb9DskgrJQHZ+5yT8FXK5Y= github.com/aws/aws-sdk-go-v2/service/lambda v1.39.5/go.mod h1:ByLHcf0zbHpyLTOy1iPVRPJWmAUPCiJv5k81dt52ID8= +github.com/aws/aws-sdk-go-v2/service/lexmodelsv2 v1.32.5 h1:vI9ar8zMH9oJ0ywJU184iMj8MRe/2WjOUpWxK3mzIUQ= +github.com/aws/aws-sdk-go-v2/service/lexmodelsv2 v1.32.5/go.mod h1:BsjYt3w75hHFse6bzZt4Lvzdl2yKESDV6WIOOVOQsUU= github.com/aws/aws-sdk-go-v2/service/lightsail v1.28.5 h1:IFT75uoZ5Ohcpb0sf7NQTF0Tyx8SmfCMz9IQGjyztXQ= github.com/aws/aws-sdk-go-v2/service/lightsail v1.28.5/go.mod h1:nh/y5+FgVxvjrwd2myeB92rKKJVMkxZem3irP3/bT28= github.com/aws/aws-sdk-go-v2/service/medialive v1.34.4 h1:/Ni7G5Eb57n+SEnvVneY9FPee/Saj69qxAJ6UwfjEcw= diff --git a/internal/conns/awsclient_gen.go b/internal/conns/awsclient_gen.go index 6c4ed13676a..f4df7c86df8 100644 --- a/internal/conns/awsclient_gen.go +++ b/internal/conns/awsclient_gen.go @@ -32,6 +32,7 @@ import ( kendra_sdkv2 "github.com/aws/aws-sdk-go-v2/service/kendra" keyspaces_sdkv2 "github.com/aws/aws-sdk-go-v2/service/keyspaces" lambda_sdkv2 "github.com/aws/aws-sdk-go-v2/service/lambda" + lexmodelsv2_sdkv2 "github.com/aws/aws-sdk-go-v2/service/lexmodelsv2" lightsail_sdkv2 "github.com/aws/aws-sdk-go-v2/service/lightsail" medialive_sdkv2 "github.com/aws/aws-sdk-go-v2/service/medialive" mediapackage_sdkv2 "github.com/aws/aws-sdk-go-v2/service/mediapackage" @@ -720,6 +721,10 @@ func (c *AWSClient) LexModelsConn(ctx context.Context) *lexmodelbuildingservice_ return errs.Must(conn[*lexmodelbuildingservice_sdkv1.LexModelBuildingService](ctx, c, names.LexModels)) } +func (c *AWSClient) LexModelsV2Client(ctx context.Context) *lexmodelsv2_sdkv2.Client { + return errs.Must(client[*lexmodelsv2_sdkv2.Client](ctx, c, names.LexModelsV2)) +} + func (c *AWSClient) LicenseManagerConn(ctx context.Context) *licensemanager_sdkv1.LicenseManager { return errs.Must(conn[*licensemanager_sdkv1.LicenseManager](ctx, c, names.LicenseManager)) } diff --git a/names/consts_gen.go b/names/consts_gen.go index 6c057b370f0..bfc9fb72e0f 100644 --- a/names/consts_gen.go +++ b/names/consts_gen.go @@ -122,6 +122,7 @@ const ( LakeFormation = "lakeformation" Lambda = "lambda" LexModels = "lexmodels" + LexModelsV2 = "lexmodelsv2" LicenseManager = "licensemanager" Lightsail = "lightsail" Location = "location" diff --git a/names/names_data.csv b/names/names_data.csv index 33802c9eeab..8ca63d22a8b 100644 --- a/names/names_data.csv +++ b/names/names_data.csv @@ -213,7 +213,7 @@ lakeformation,lakeformation,lakeformation,lakeformation,,lakeformation,,,LakeFor lambda,lambda,lambda,lambda,,lambda,,,Lambda,Lambda,,1,2,,aws_lambda_,,lambda_,Lambda,AWS,,,,,, ,,,,,,,,,,,,,,,,,Launch Wizard,AWS,x,,,,,No SDK support lex-models,lexmodels,lexmodelbuildingservice,lexmodelbuildingservice,,lexmodels,,lexmodelbuilding;lexmodelbuildingservice;lex,LexModels,LexModelBuildingService,,1,,aws_lex_,aws_lexmodels_,,lex_,Lex Model Building,Amazon,,,,,, -lexv2-models,lexv2models,lexmodelsv2,lexmodelsv2,,lexmodelsv2,,lexv2models,LexModelsV2,LexModelsV2,,1,,,aws_lexmodelsv2_,,lexmodelsv2_,Lex Models V2,Amazon,,x,,,, +lexv2-models,lexv2models,lexmodelsv2,lexmodelsv2,,lexmodelsv2,,lexv2models,LexModelsV2,LexModelsV2,,,2,aws_lexv2models_,aws_lexmodelsv2_,,lexmodelsv2_,Lex Models V2,Amazon,,,,,, lex-runtime,lexruntime,lexruntimeservice,lexruntimeservice,,lexruntime,,lexruntimeservice,LexRuntime,LexRuntimeService,,1,,,aws_lexruntime_,,lexruntime_,Lex Runtime,Amazon,,x,,,, lexv2-runtime,lexv2runtime,lexruntimev2,lexruntimev2,,lexruntimev2,,lexv2runtime,LexRuntimeV2,LexRuntimeV2,,1,,,aws_lexruntimev2_,,lexruntimev2_,Lex Runtime V2,Amazon,,x,,,, license-manager,licensemanager,licensemanager,licensemanager,,licensemanager,,,LicenseManager,LicenseManager,,1,,,aws_licensemanager_,,licensemanager_,License Manager,AWS,,,,,, diff --git a/website/allowed-subcategories.txt b/website/allowed-subcategories.txt index d15da57bcfa..c8e44bdd65d 100644 --- a/website/allowed-subcategories.txt +++ b/website/allowed-subcategories.txt @@ -127,6 +127,7 @@ Kinesis Video Lake Formation Lambda Lex Model Building +Lex Models V2 License Manager Lightsail Location diff --git a/website/docs/guides/custom-service-endpoints.html.md b/website/docs/guides/custom-service-endpoints.html.md index 2b0810d5523..017d372137d 100644 --- a/website/docs/guides/custom-service-endpoints.html.md +++ b/website/docs/guides/custom-service-endpoints.html.md @@ -190,6 +190,7 @@ provider "aws" {
  • lakeformation
  • lambda
  • lexmodels (or lexmodelbuilding or lexmodelbuildingservice or lex)
  • +
  • lexmodelsv2 (or lexv2models)
  • licensemanager
  • lightsail
  • location (or locationservice)