diff --git a/CHANGELOG.md b/CHANGELOG.md index 845d72532b2..b0ca11080fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,14 @@ +Release v1.43.34 (2022-04-06) +=== + +### Service Client Updates +* `service/config`: Updates service API and documentation +* `service/kendra`: Updates service API and documentation + * Amazon Kendra now provides a data source connector for Box. For more information, see https://docs.aws.amazon.com/kendra/latest/dg/data-source-box.html +* `service/lambda`: Updates service API, documentation, and paginators + * This release adds new APIs for creating and managing Lambda Function URLs and adds a new FunctionUrlAuthType parameter to the AddPermission API. Customers can use Function URLs to create built-in HTTPS endpoints on their functions. +* `service/panorama`: Updates service API and documentation + Release v1.43.33 (2022-04-05) === diff --git a/aws/endpoints/defaults.go b/aws/endpoints/defaults.go index e3208828bd6..bbdf1498783 100644 --- a/aws/endpoints/defaults.go +++ b/aws/endpoints/defaults.go @@ -11160,12 +11160,42 @@ var awsPartition = partition{ endpointKey{ Region: "eu-west-1", }: endpoint{}, + endpointKey{ + Region: "fips-us-east-1", + }: endpoint{ + Hostname: "iotsitewise-fips.us-east-1.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-east-1", + }, + Deprecated: boxedTrue, + }, + endpointKey{ + Region: "fips-us-west-2", + }: endpoint{ + Hostname: "iotsitewise-fips.us-west-2.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-west-2", + }, + Deprecated: boxedTrue, + }, endpointKey{ Region: "us-east-1", }: endpoint{}, + endpointKey{ + Region: "us-east-1", + Variant: fipsVariant, + }: endpoint{ + Hostname: "iotsitewise-fips.us-east-1.amazonaws.com", + }, endpointKey{ Region: "us-west-2", }: endpoint{}, + endpointKey{ + Region: "us-west-2", + Variant: fipsVariant, + }: endpoint{ + Hostname: "iotsitewise-fips.us-west-2.amazonaws.com", + }, }, }, "iotthingsgraph": service{ @@ -15477,6 +15507,9 @@ var awsPartition = partition{ endpointKey{ Region: "ap-southeast-2", }: endpoint{}, + endpointKey{ + Region: "ap-southeast-3", + }: endpoint{}, endpointKey{ Region: "ca-central-1", }: endpoint{}, @@ -26394,9 +26427,24 @@ var awsusgovPartition = partition{ }, "iotsitewise": service{ Endpoints: serviceEndpoints{ + endpointKey{ + Region: "fips-us-gov-west-1", + }: endpoint{ + Hostname: "iotsitewise-fips.us-gov-west-1.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-gov-west-1", + }, + Deprecated: boxedTrue, + }, endpointKey{ Region: "us-gov-west-1", }: endpoint{}, + endpointKey{ + Region: "us-gov-west-1", + Variant: fipsVariant, + }: endpoint{ + Hostname: "iotsitewise-fips.us-gov-west-1.amazonaws.com", + }, }, }, "kafka": service{ diff --git a/aws/version.go b/aws/version.go index 2a1f9185395..3ec894aafe3 100644 --- a/aws/version.go +++ b/aws/version.go @@ -5,4 +5,4 @@ package aws const SDKName = "aws-sdk-go" // SDKVersion is the version of this SDK -const SDKVersion = "1.43.33" +const SDKVersion = "1.43.34" diff --git a/models/apis/config/2014-11-12/api-2.json b/models/apis/config/2014-11-12/api-2.json index 37f6a370fba..091df65c339 100644 --- a/models/apis/config/2014-11-12/api-2.json +++ b/models/apis/config/2014-11-12/api-2.json @@ -4507,7 +4507,9 @@ "AWS::CodeDeploy::DeploymentGroup", "AWS::EC2::LaunchTemplate", "AWS::ECR::PublicRepository", - "AWS::GuardDuty::Detector" + "AWS::GuardDuty::Detector", + "AWS::EMR::SecurityConfiguration", + "AWS::SageMaker::CodeRepository" ] }, "ResourceTypeList":{ diff --git a/models/apis/config/2014-11-12/docs-2.json b/models/apis/config/2014-11-12/docs-2.json index 5b86aa24403..4bc7364c223 100644 --- a/models/apis/config/2014-11-12/docs-2.json +++ b/models/apis/config/2014-11-12/docs-2.json @@ -68,14 +68,14 @@ "ListStoredQueries": "

Lists the stored queries for a single Amazon Web Services account and a single Amazon Web Services Region. The default is 100.

", "ListTagsForResource": "

List the tags for Config resource.

", "PutAggregationAuthorization": "

Authorizes the aggregator account and region to collect data from the source account and region.

", - "PutConfigRule": "

Adds or updates an Config rule for evaluating whether your Amazon Web Services resources comply with your desired configurations.

You can use this action for custom Config rules and Config managed rules. A custom Config rule is a rule that you develop and maintain. An Config managed rule is a customizable, predefined rule that Config provides.

If you are adding a new custom Config rule, you must first create the Lambda function that the rule invokes to evaluate your resources. When you use the PutConfigRule action to add the rule to Config, you must specify the Amazon Resource Name (ARN) that Lambda assigns to the function. Specify the ARN for the SourceIdentifier key. This key is part of the Source object, which is part of the ConfigRule object.

If you are adding an Config managed rule, specify the rule's identifier for the SourceIdentifier key. To reference Config managed rule identifiers, see About Config managed rules.

For any new rule that you add, specify the ConfigRuleName in the ConfigRule object. Do not specify the ConfigRuleArn or the ConfigRuleId. These values are generated by Config for new rules.

If you are updating a rule that you added previously, you can specify the rule by ConfigRuleName, ConfigRuleId, or ConfigRuleArn in the ConfigRule data type that you use in this request.

The maximum number of rules that Config supports is 150.

For information about requesting a rule limit increase, see Config Limits in the Amazon Web Services General Reference Guide.

For more information about developing and using Config rules, see Evaluating Amazon Web Services resource Configurations with Config in the Config Developer Guide.

", + "PutConfigRule": "

Adds or updates an Config rule for evaluating whether your Amazon Web Services resources comply with your desired configurations.

You can use this action for Config custom rules and Config managed rules. A Config custom rule is a rule that you develop and maintain. An Config managed rule is a customizable, predefined rule that Config provides.

If you are adding a new Config custom rule, you must first create the Lambda function that the rule invokes to evaluate your resources. When you use the PutConfigRule action to add the rule to Config, you must specify the Amazon Resource Name (ARN) that Lambda assigns to the function. Specify the ARN for the SourceIdentifier key. This key is part of the Source object, which is part of the ConfigRule object.

If you are adding an Config managed rule, specify the rule's identifier for the SourceIdentifier key. To reference Config managed rule identifiers, see About Config managed rules.

For any new rule that you add, specify the ConfigRuleName in the ConfigRule object. Do not specify the ConfigRuleArn or the ConfigRuleId. These values are generated by Config for new rules.

If you are updating a rule that you added previously, you can specify the rule by ConfigRuleName, ConfigRuleId, or ConfigRuleArn in the ConfigRule data type that you use in this request.

The maximum number of rules that Config supports is 150.

For information about requesting a rule limit increase, see Config Limits in the Amazon Web Services General Reference Guide.

For more information about developing and using Config rules, see Evaluating Amazon Web Services resource Configurations with Config in the Config Developer Guide.

", "PutConfigurationAggregator": "

Creates and updates the configuration aggregator with the selected source accounts and regions. The source account can be individual account(s) or an organization.

accountIds that are passed will be replaced with existing accounts. If you want to add additional accounts into the aggregator, call DescribeConfigurationAggregators to get the previous accounts and then append new ones.

Config should be enabled in source accounts and regions you want to aggregate.

If your source type is an organization, you must be signed in to the management account or a registered delegated administrator and all the features must be enabled in your organization. If the caller is a management account, Config calls EnableAwsServiceAccess API to enable integration between Config and Organizations. If the caller is a registered delegated administrator, Config calls ListDelegatedAdministrators API to verify whether the caller is a valid delegated administrator.

To register a delegated administrator, see Register a Delegated Administrator in the Config developer guide.

", "PutConfigurationRecorder": "

Creates a new configuration recorder to record the selected resource configurations.

You can use this action to change the role roleARN or the recordingGroup of an existing recorder. To change the role, call the action on the existing configuration recorder and specify a role.

Currently, you can specify only one configuration recorder per region in your account.

If ConfigurationRecorder does not have the recordingGroup parameter specified, the default is to record all supported resource types.

", "PutConformancePack": "

Creates or updates a conformance pack. A conformance pack is a collection of Config rules that can be easily deployed in an account and a region and across Amazon Web Services Organization.

This API creates a service linked role AWSServiceRoleForConfigConforms in your account. The service linked role is created only when the role does not exist in your account.

You must specify either the TemplateS3Uri or the TemplateBody parameter, but not both. If you provide both Config uses the TemplateS3Uri parameter and ignores the TemplateBody parameter.

", "PutDeliveryChannel": "

Creates a delivery channel object to deliver configuration information to an Amazon S3 bucket and Amazon SNS topic.

Before you can create a delivery channel, you must create a configuration recorder.

You can use this action to change the Amazon S3 bucket or an Amazon SNS topic of the existing delivery channel. To change the Amazon S3 bucket or an Amazon SNS topic, call this action and specify the changed values for the S3 bucket and the SNS topic. If you specify a different value for either the S3 bucket or the SNS topic, this action will keep the existing value for the parameter that is not changed.

You can have only one delivery channel per region in your account.

", "PutEvaluations": "

Used by an Lambda function to deliver evaluation results to Config. This action is required in every Lambda function that is invoked by an Config rule.

", "PutExternalEvaluation": "

Add or updates the evaluations for process checks. This API checks if the rule is a process check when the name of the Config rule is provided.

", - "PutOrganizationConfigRule": "

Adds or updates organization Config rule for your entire organization evaluating whether your Amazon Web Services resources comply with your desired configurations.

Only a master account and a delegated administrator can create or update an organization Config rule. When calling this API with a delegated administrator, you must ensure Organizations ListDelegatedAdministrator permissions are added.

This API enables organization service access through the EnableAWSServiceAccess action and creates a service linked role AWSServiceRoleForConfigMultiAccountSetup in the master or delegated administrator account of your organization. The service linked role is created only when the role does not exist in the caller account. Config verifies the existence of role with GetRole action.

To use this API with delegated administrator, register a delegated administrator by calling Amazon Web Services Organization register-delegated-administrator for config-multiaccountsetup.amazonaws.com.

You can use this action to create both custom Config rules and Config managed rules. If you are adding a new custom Config rule, you must first create Lambda function in the master account or a delegated administrator that the rule invokes to evaluate your resources. You also need to create an IAM role in the managed-account that can be assumed by the Lambda function. When you use the PutOrganizationConfigRule action to add the rule to Config, you must specify the Amazon Resource Name (ARN) that Lambda assigns to the function. If you are adding an Config managed rule, specify the rule's identifier for the RuleIdentifier key.

The maximum number of organization Config rules that Config supports is 150 and 3 delegated administrator per organization.

Prerequisite: Ensure you call EnableAllFeatures API to enable all features in an organization.

Specify either OrganizationCustomRuleMetadata or OrganizationManagedRuleMetadata.

", + "PutOrganizationConfigRule": "

Adds or updates organization Config rule for your entire organization evaluating whether your Amazon Web Services resources comply with your desired configurations.

Only a master account and a delegated administrator can create or update an organization Config rule. When calling this API with a delegated administrator, you must ensure Organizations ListDelegatedAdministrator permissions are added.

This API enables organization service access through the EnableAWSServiceAccess action and creates a service linked role AWSServiceRoleForConfigMultiAccountSetup in the master or delegated administrator account of your organization. The service linked role is created only when the role does not exist in the caller account. Config verifies the existence of role with GetRole action.

To use this API with delegated administrator, register a delegated administrator by calling Amazon Web Services Organization register-delegated-administrator for config-multiaccountsetup.amazonaws.com.

You can use this action to create both Config custom rules and Config managed rules. If you are adding a new Config custom rule, you must first create Lambda function in the master account or a delegated administrator that the rule invokes to evaluate your resources. You also need to create an IAM role in the managed-account that can be assumed by the Lambda function. When you use the PutOrganizationConfigRule action to add the rule to Config, you must specify the Amazon Resource Name (ARN) that Lambda assigns to the function. If you are adding an Config managed rule, specify the rule's identifier for the RuleIdentifier key.

The maximum number of organization Config rules that Config supports is 150 and 3 delegated administrator per organization.

Prerequisite: Ensure you call EnableAllFeatures API to enable all features in an organization.

Specify either OrganizationCustomRuleMetadata or OrganizationManagedRuleMetadata.

", "PutOrganizationConformancePack": "

Deploys conformance packs across member accounts in an Amazon Web Services Organization.

Only a master account and a delegated administrator can call this API. When calling this API with a delegated administrator, you must ensure Organizations ListDelegatedAdministrator permissions are added.

This API enables organization service access for config-multiaccountsetup.amazonaws.com through the EnableAWSServiceAccess action and creates a service linked role AWSServiceRoleForConfigMultiAccountSetup in the master or delegated administrator account of your organization. The service linked role is created only when the role does not exist in the caller account. To use this API with delegated administrator, register a delegated administrator by calling Amazon Web Services Organization register-delegate-admin for config-multiaccountsetup.amazonaws.com.

Prerequisite: Ensure you call EnableAllFeatures API to enable all features in an organization.

You must specify either the TemplateS3Uri or the TemplateBody parameter, but not both. If you provide both Config uses the TemplateS3Uri parameter and ignores the TemplateBody parameter.

Config sets the state of a conformance pack to CREATE_IN_PROGRESS and UPDATE_IN_PROGRESS until the conformance pack is created or updated. You cannot update a conformance pack while it is in this state.

You can create 50 conformance packs with 25 Config rules in each pack and 3 delegated administrator per organization.

", "PutRemediationConfigurations": "

Adds or updates the remediation configuration with a specific Config rule with the selected target or action. The API creates the RemediationConfiguration object for the Config rule. The Config rule must already exist for you to add a remediation configuration. The target (SSM document) must exist and have permissions to use the target.

If you make backward incompatible changes to the SSM document, you must call this again to ensure the remediations can run.

This API does not support adding remediation configurations for service-linked Config Rules such as Organization Config rules, the rules deployed by conformance packs, and rules deployed by Amazon Web Services Security Hub.

", "PutRemediationExceptions": "

A remediation exception is when a specific resource is no longer considered for auto-remediation. This API adds a new exception or updates an existing exception for a specific resource with a specific Config rule.

Config generates a remediation exception when a problem occurs executing a remediation action to a specific resource. Remediation exceptions blocks auto-remediation until the exception is cleared.

", diff --git a/models/apis/kendra/2019-02-03/api-2.json b/models/apis/kendra/2019-02-03/api-2.json index a5fab8fe0d8..89176040d86 100644 --- a/models/apis/kendra/2019-02-03/api-2.json +++ b/models/apis/kendra/2019-02-03/api-2.json @@ -1162,6 +1162,28 @@ }, "Blob":{"type":"blob"}, "Boolean":{"type":"boolean"}, + "BoxConfiguration":{ + "type":"structure", + "required":[ + "EnterpriseId", + "SecretArn" + ], + "members":{ + "EnterpriseId":{"shape":"EnterpriseId"}, + "SecretArn":{"shape":"SecretArn"}, + "UseChangeLog":{"shape":"Boolean"}, + "CrawlComments":{"shape":"Boolean"}, + "CrawlTasks":{"shape":"Boolean"}, + "CrawlWebLinks":{"shape":"Boolean"}, + "FileFieldMappings":{"shape":"DataSourceToIndexFieldMappingList"}, + "TaskFieldMappings":{"shape":"DataSourceToIndexFieldMappingList"}, + "CommentFieldMappings":{"shape":"DataSourceToIndexFieldMappingList"}, + "WebLinkFieldMappings":{"shape":"DataSourceToIndexFieldMappingList"}, + "InclusionPatterns":{"shape":"DataSourceInclusionsExclusionsStrings"}, + "ExclusionPatterns":{"shape":"DataSourceInclusionsExclusionsStrings"}, + "VpcConfiguration":{"shape":"DataSourceVpcConfiguration"} + } + }, "CapacityUnitsConfiguration":{ "type":"structure", "required":[ @@ -1678,7 +1700,8 @@ "WebCrawlerConfiguration":{"shape":"WebCrawlerConfiguration"}, "WorkDocsConfiguration":{"shape":"WorkDocsConfiguration"}, "FsxConfiguration":{"shape":"FsxConfiguration"}, - "SlackConfiguration":{"shape":"SlackConfiguration"} + "SlackConfiguration":{"shape":"SlackConfiguration"}, + "BoxConfiguration":{"shape":"BoxConfiguration"} } }, "DataSourceDateFieldFormat":{ @@ -1851,7 +1874,8 @@ "WEBCRAWLER", "WORKDOCS", "FSX", - "SLACK" + "SLACK", + "BOX" ] }, "DataSourceVpcConfiguration":{ @@ -2457,6 +2481,12 @@ "type":"string", "enum":["HOME"] }, + "EnterpriseId":{ + "type":"string", + "max":64, + "min":1, + "pattern":"^[A-Z0-9]*$" + }, "EntityConfiguration":{ "type":"structure", "required":[ diff --git a/models/apis/kendra/2019-02-03/docs-2.json b/models/apis/kendra/2019-02-03/docs-2.json index 0849c12b428..6eace0fb5a1 100644 --- a/models/apis/kendra/2019-02-03/docs-2.json +++ b/models/apis/kendra/2019-02-03/docs-2.json @@ -24,7 +24,7 @@ "DescribeDataSource": "

Gets information about an Amazon Kendra data source.

", "DescribeExperience": "

Gets information about your Amazon Kendra experience such as a search application. For more information on creating a search application experience, see Building a search experience with no code.

", "DescribeFaq": "

Gets information about an FAQ list.

", - "DescribeIndex": "

Describes an existing Amazon Kendra index

", + "DescribeIndex": "

Describes an existing Amazon Kendra index.

", "DescribePrincipalMapping": "

Describes the processing of PUT and DELETE actions for mapping users to their groups. This includes information on the status of actions currently processing or yet to be processed, when actions were last updated, when actions were received by Amazon Kendra, the latest action that should process and apply after other actions, and useful error messages if an action could not be processed.

DescribePrincipalMapping is currently not supported in the Amazon Web Services GovCloud (US-West) region.

", "DescribeQuerySuggestionsBlockList": "

Describes a block list used for query suggestions for an index.

This is used to check the current settings that are applied to a block list.

DescribeQuerySuggestionsBlockList is currently not supported in the Amazon Web Services GovCloud (US-West) region.

", "DescribeQuerySuggestionsConfig": "

Describes the settings of query suggestions for an index.

This is used to check the current settings applied to query suggestions.

DescribeQuerySuggestionsConfig is currently not supported in the Amazon Web Services GovCloud (US-West) region.

", @@ -40,7 +40,7 @@ "ListExperiences": "

Lists one or more Amazon Kendra experiences. You can create an Amazon Kendra experience such as a search application. For more information on creating a search application experience, see Building a search experience with no code.

", "ListFaqs": "

Gets a list of FAQ lists associated with an index.

", "ListGroupsOlderThanOrderingId": "

Provides a list of groups that are mapped to users before a given ordering or timestamp identifier.

ListGroupsOlderThanOrderingId is currently not supported in the Amazon Web Services GovCloud (US-West) region.

", - "ListIndices": "

Lists the Amazon Kendra indexes that you have created.

", + "ListIndices": "

Lists the Amazon Kendra indexes that you created.

", "ListQuerySuggestionsBlockLists": "

Lists the block lists used for query suggestions for an index.

For information on the current quota limits for block lists, see Quotas for Amazon Kendra.

ListQuerySuggestionsBlockLists is currently not supported in the Amazon Web Services GovCloud (US-West) region.

", "ListTagsForResource": "

Gets a list of tags associated with a specified resource. Indexes, FAQs, and data sources can have tags associated with them.

", "ListThesauri": "

Lists the Amazon Kendra thesauri associated with an index.

", @@ -248,6 +248,10 @@ "Boolean": { "base": null, "refs": { + "BoxConfiguration$UseChangeLog": "

TRUE to use the Slack change log to determine which documents require updating in the index. Depending on the data source change log's size, it may take longer for Amazon Kendra to use the change log than to scan all of your documents.

", + "BoxConfiguration$CrawlComments": "

TRUE to index comments.

", + "BoxConfiguration$CrawlTasks": "

TRUE to index the contents of tasks.

", + "BoxConfiguration$CrawlWebLinks": "

TRUE to index web links.

", "ConfluenceAttachmentConfiguration$CrawlAttachments": "

Indicates whether Amazon Kendra indexes attachments to the pages and blogs in the Confluence data source.

", "ConfluenceSpaceConfiguration$CrawlPersonalSpaces": "

Specifies whether Amazon Kendra should index personal spaces. Users can add restrictions to items in personal spaces. If personal spaces are indexed, queries without user context information may return restricted items from a personal space in their results. For more information, see Filtering on user context.

", "ConfluenceSpaceConfiguration$CrawlArchivedSpaces": "

Specifies whether Amazon Kendra should index archived spaces.

", @@ -274,11 +278,17 @@ "WorkDocsConfiguration$UseChangeLog": "

TRUE to use the Amazon WorkDocs change log to determine which documents require updating in the index. Depending on the change log's size, it may take longer for Amazon Kendra to use the change log than to scan all of your documents in Amazon WorkDocs.

" } }, + "BoxConfiguration": { + "base": "

Provides the configuration information to connect to Box as your data source.

", + "refs": { + "DataSourceConfiguration$BoxConfiguration": "

Provides the configuration information to connect to Box as your data source.

" + } + }, "CapacityUnitsConfiguration": { - "base": "

Specifies capacity units configured for your enterprise edition index. You can add and remove capacity units to tune an index to your requirements.

", + "base": "

Specifies additional capacity units configured for your Enterprise Edition index. You can add and remove capacity units to fit your usage requirements.

", "refs": { - "DescribeIndexResponse$CapacityUnits": "

For Enterprise edition indexes, you can choose to use additional capacity to meet the needs of your application. This contains the capacity units used for the index. A 0 for the query capacity or the storage capacity indicates that the index is using the default capacity for the index.

", - "UpdateIndexRequest$CapacityUnits": "

Sets the number of additional storage and query capacity units that should be used by the index. You can change the capacity of the index up to 5 times per day.

If you are using extra storage units, you can't reduce the storage capacity below that required to meet the storage needs for your index.

" + "DescribeIndexResponse$CapacityUnits": "

For Enterprise Edition indexes, you can choose to use additional capacity to meet the needs of your application. This contains the capacity units used for the index. A query or document storage capacity of zero indicates that the index is using the default capacity. For more information on the default capacity for an index and adjusting this, see Adjusting capacity.

", + "UpdateIndexRequest$CapacityUnits": "

Sets the number of additional document storage and query capacity units that should be used by the index. You can change the capacity of the index up to 5 times per day, or make 5 API calls.

If you are using extra storage units, you can't reduce the storage capacity below what is required to meet the storage needs for your index.

" } }, "ChangeDetectingColumns": { @@ -657,6 +667,8 @@ "DataSourceInclusionsExclusionsStrings": { "base": null, "refs": { + "BoxConfiguration$InclusionPatterns": "

A list of regular expression patterns to include certain files and folders in your Box platform. Files and folders that match the patterns are included in the index. Files and folders that don't match the patterns are excluded from the index. If a file or folder matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file or folder isn't included in the index.

", + "BoxConfiguration$ExclusionPatterns": "

A list of regular expression patterns to exclude certain files and folders from your Box platform. Files and folders that match the patterns are excluded from the index.Files and folders that don't match the patterns are included in the index. If a file or folder matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file or folder isn't included in the index.

", "ConfluenceConfiguration$InclusionPatterns": "

A list of regular expression patterns to include certain blog posts, pages, spaces, or attachments in your Confluence. Content that matches the patterns are included in the index. Content that doesn't match the patterns is excluded from the index. If content matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the content isn't included in the index.

", "ConfluenceConfiguration$ExclusionPatterns": "

>A list of regular expression patterns to exclude certain blog posts, pages, spaces, or attachments in your Confluence. Content that matches the patterns are excluded from the index. Content that doesn't match the patterns is included in the index. If content matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the content isn't included in the index.

", "FsxConfiguration$InclusionPatterns": "

A list of regular expression patterns to include certain files in your Amazon FSx file system. Files that match the patterns are included in the index. Files that don't match the patterns are excluded from the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

", @@ -764,6 +776,10 @@ "DataSourceToIndexFieldMappingList": { "base": null, "refs": { + "BoxConfiguration$FileFieldMappings": "

A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Box files to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Box fields. For more information, see Mapping data source fields. The Box field names must exist in your Box custom metadata.

", + "BoxConfiguration$TaskFieldMappings": "

A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Box tasks to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Box fields. For more information, see Mapping data source fields. The Box field names must exist in your Box custom metadata.

", + "BoxConfiguration$CommentFieldMappings": "

A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Box comments to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Box fields. For more information, see Mapping data source fields. The Box field names must exist in your Box custom metadata.

", + "BoxConfiguration$WebLinkFieldMappings": "

A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Box web links to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Box fields. For more information, see Mapping data source fields. The Box field names must exist in your Box custom metadata.

", "ColumnConfiguration$FieldMappings": "

An array of objects that map database column names to the corresponding fields in an index. You must first create the fields in the index using the UpdateIndex API.

", "FsxConfiguration$FieldMappings": "

A list of DataSourceToIndexFieldMapping objects that map Amazon FSx data source attributes or field names to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Amazon FSx fields. For more information, see Mapping data source fields. The Amazon FSx data source field names must exist in your Amazon FSx custom metadata.

", "GoogleDriveConfiguration$FieldMappings": "

Maps Google Drive data source attributes or field names to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Google Drive fields. For more information, see Mapping data source fields. The Google Drive data source field names must exist in your Google Drive custom metadata.

", @@ -791,6 +807,7 @@ "DataSourceVpcConfiguration": { "base": "

Provides the configuration information to connect to an Amazon VPC.

", "refs": { + "BoxConfiguration$VpcConfiguration": "

Configuration information for an Amazon VPC to connect to your Box. For more information, see Configuring a VPC.

", "ConfluenceConfiguration$VpcConfiguration": "

Configuration information for an Amazon Virtual Private Cloud to connect to your Confluence. For more information, see Configuring a VPC.

", "DatabaseConfiguration$VpcConfiguration": null, "FsxConfiguration$VpcConfiguration": "

Configuration information for an Amazon Virtual Private Cloud to connect to your Amazon FSx. Your Amazon FSx instance must reside inside your VPC.

", @@ -960,7 +977,7 @@ "DescribeDataSourceResponse$Description": "

The description of the data source.

", "DescribeExperienceResponse$Description": "

Shows the description for your Amazon Kendra experience.

", "DescribeFaqResponse$Description": "

The description of the FAQ that you provided when it was created.

", - "DescribeIndexResponse$Description": "

The description of the index.

", + "DescribeIndexResponse$Description": "

The description for the index.

", "DescribeQuerySuggestionsBlockListResponse$Description": "

Shows the description for the block list.

", "DescribeThesaurusResponse$Description": "

The thesaurus description.

", "UpdateDataSourceRequest$Description": "

The new description for the data source.

", @@ -1205,6 +1222,12 @@ "ExperienceEndpoint$EndpointType": "

The type of endpoint for your Amazon Kendra experience. The type currently available is HOME, which is a unique and fully hosted URL to the home page of your Amazon Kendra experience.

" } }, + "EnterpriseId": { + "base": null, + "refs": { + "BoxConfiguration$EnterpriseId": "

The identifier of the Box Enterprise platform. You can find the enterprise ID in the Box Developer Console settings or when you create an app in Box and download your authentication credentials. For example, 801234567.

" + } + }, "EntityConfiguration": { "base": "

Provides the configuration information for users or groups in your Amazon Web Services SSO identity source to grant access your Amazon Kendra experience.

", "refs": { @@ -1275,7 +1298,7 @@ "DescribeDataSourceResponse$ErrorMessage": "

When the Status field value is FAILED, the ErrorMessage field contains a description of the error that caused the data source to fail.

", "DescribeExperienceResponse$ErrorMessage": "

The reason your Amazon Kendra experience could not properly process.

", "DescribeFaqResponse$ErrorMessage": "

If the Status field is FAILED, the ErrorMessage field contains the reason why the FAQ failed.

", - "DescribeIndexResponse$ErrorMessage": "

When th eStatus field value is FAILED, the ErrorMessage field contains a message that explains why.

", + "DescribeIndexResponse$ErrorMessage": "

When the Status field value is FAILED, the ErrorMessage field contains a message that explains why.

", "DescribeQuerySuggestionsBlockListResponse$ErrorMessage": "

Shows the error message with details when there are issues in processing the block list.

", "DescribeThesaurusResponse$ErrorMessage": "

When the Status field value is FAILED, the ErrorMessage field provides more information.

", "FailedEntity$ErrorMessage": "

The reason the user or group in your Amazon Web Services SSO identity source failed to properly configure with your Amazon Kendra experience.

", @@ -1701,8 +1724,8 @@ "DescribeExperienceResponse$IndexId": "

Shows the identifier of the index for your Amazon Kendra experience.

", "DescribeFaqRequest$IndexId": "

The identifier of the index that contains the FAQ.

", "DescribeFaqResponse$IndexId": "

The identifier of the index that contains the FAQ.

", - "DescribeIndexRequest$Id": "

The name of the index to describe.

", - "DescribeIndexResponse$Id": "

The name of the index.

", + "DescribeIndexRequest$Id": "

The identifier of the index to describe.

", + "DescribeIndexResponse$Id": "

The identifier of the index.

", "DescribePrincipalMappingRequest$IndexId": "

The identifier of the index required to check the processing of PUT and DELETE actions for mapping users to their groups.

", "DescribePrincipalMappingResponse$IndexId": "

Shows the identifier of the index to see information on the processing of PUT and DELETE actions for mapping users to their groups.

", "DescribeQuerySuggestionsBlockListRequest$IndexId": "

The identifier of the index for the block list.

", @@ -1742,7 +1765,7 @@ "refs": { "CreateIndexRequest$Name": "

The name for the new index.

", "DescribeIndexResponse$Name": "

The name of the index.

", - "IndexConfigurationSummary$Name": "

The name of the index.

", + "IndexConfigurationSummary$Name": "

The identifier of the index.

", "UpdateIndexRequest$Name": "

The name of the index to update.

" } }, @@ -2491,7 +2514,7 @@ "CreateDataSourceRequest$RoleArn": "

The Amazon Resource Name (ARN) of a role with permission to access the data source. For more information, see IAM Roles for Amazon Kendra.

You can't specify the RoleArn parameter when the Type parameter is set to CUSTOM. If you do, you receive a ValidationException exception.

The RoleArn parameter is required for all other data sources.

", "CreateExperienceRequest$RoleArn": "

The Amazon Resource Name (ARN) of a role with permission to access Query API, QuerySuggestions API, SubmitFeedback API, and Amazon Web Services SSO that stores your user and group information. For more information, see IAM roles for Amazon Kendra.

", "CreateFaqRequest$RoleArn": "

The Amazon Resource Name (ARN) of a role with permission to access the S3 bucket that contains the FAQs. For more information, see IAM Roles for Amazon Kendra.

", - "CreateIndexRequest$RoleArn": "

An Identity and Access Management(IAM) role that gives Amazon Kendra permissions to access your Amazon CloudWatch logs and metrics. This is also the role used when you use the BatchPutDocument API to index documents from an Amazon S3 bucket.

", + "CreateIndexRequest$RoleArn": "

An Identity and Access Management (IAM) role that gives Amazon Kendra permissions to access your Amazon CloudWatch logs and metrics. This is also the role you use when you call the BatchPutDocument API to index documents from an Amazon S3 bucket.

", "CreateQuerySuggestionsBlockListRequest$RoleArn": "

The IAM (Identity and Access Management) role used by Amazon Kendra to access the block list text file in your S3 bucket.

You need permissions to the role ARN (Amazon Web Services Resource Name). The role needs S3 read permissions to your file in S3 and needs to give STS (Security Token Service) assume role permissions to Amazon Kendra.

", "CreateThesaurusRequest$RoleArn": "

An IAM role that gives Amazon Kendra permissions to access thesaurus file specified in SourceS3Path.

", "CustomDocumentEnrichmentConfiguration$RoleArn": "

The Amazon Resource Name (ARN) of a role with permission to run PreExtractionHookConfiguration and PostExtractionHookConfiguration for altering document metadata and content during the document ingestion process. For more information, see IAM roles for Amazon Kendra.

", @@ -2669,6 +2692,7 @@ "base": null, "refs": { "BasicAuthenticationConfiguration$Credentials": "

Your secret ARN, which you can create in Secrets Manager

You use a secret if basic authentication credentials are required to connect to a website. The secret stores your credentials of user name and password.

", + "BoxConfiguration$SecretArn": "

The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs required to connect to your Box platform. The secret must contain a JSON structure with the following keys:

You create an application in Box to generate the keys or credentials required for the secret. For more information, see Authentication for a Box data source.

", "ConfluenceConfiguration$SecretArn": "

The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs required to connect to your Confluence server. The secret must contain a JSON structure with the following keys:

", "ConnectionConfiguration$SecretArn": "

The Amazon Resource Name (ARN) of credentials stored in Secrets Manager. The credentials should be a user/password pair. For more information, see Using a Database Data Source. For more information about Secrets Manager, see What Is Secrets Manager in the Secrets Manager user guide.

", "FsxConfiguration$SecretArn": "

The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs required to connect to your Amazon FSx file system. Windows is currently the only supported type. The secret must contain a JSON structure with the following keys:

", @@ -2708,8 +2732,8 @@ "ServerSideEncryptionConfiguration": { "base": "

Provides the identifier of the KMScustomer master key (CMK) used to encrypt data indexed by Amazon Kendra. Amazon Kendra doesn't support asymmetric CMKs.

", "refs": { - "CreateIndexRequest$ServerSideEncryptionConfiguration": "

The identifier of the KMScustomer managed key (CMK) to use to encrypt data indexed by Amazon Kendra. Amazon Kendra doesn't support asymmetric CMKs.

", - "DescribeIndexResponse$ServerSideEncryptionConfiguration": "

The identifier of the KMScustomer master key (CMK) used to encrypt your data. Amazon Kendra doesn't support asymmetric CMKs.

" + "CreateIndexRequest$ServerSideEncryptionConfiguration": "

The identifier of the KMS customer managed key (CMK) that's used to encrypt data indexed by Amazon Kendra. Amazon Kendra doesn't support asymmetric CMKs.

", + "DescribeIndexResponse$ServerSideEncryptionConfiguration": "

The identifier of the KMScustomer master key (CMK) that is used to encrypt your data. Amazon Kendra doesn't support asymmetric CMKs.

" } }, "ServiceNowAuthenticationType": { diff --git a/models/apis/lambda/2015-03-31/api-2.json b/models/apis/lambda/2015-03-31/api-2.json index afc614f6cd2..95dd957ce91 100644 --- a/models/apis/lambda/2015-03-31/api-2.json +++ b/models/apis/lambda/2015-03-31/api-2.json @@ -117,6 +117,23 @@ {"shape":"CodeSigningConfigNotFoundException"} ] }, + "CreateFunctionUrlConfig":{ + "name":"CreateFunctionUrlConfig", + "http":{ + "method":"POST", + "requestUri":"/2021-10-31/functions/{FunctionName}/url", + "responseCode":201 + }, + "input":{"shape":"CreateFunctionUrlConfigRequest"}, + "output":{"shape":"CreateFunctionUrlConfigResponse"}, + "errors":[ + {"shape":"ResourceConflictException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"ServiceException"}, + {"shape":"TooManyRequestsException"} + ] + }, "DeleteAlias":{ "name":"DeleteAlias", "http":{ @@ -230,6 +247,21 @@ {"shape":"ResourceConflictException"} ] }, + "DeleteFunctionUrlConfig":{ + "name":"DeleteFunctionUrlConfig", + "http":{ + "method":"DELETE", + "requestUri":"/2021-10-31/functions/{FunctionName}/url", + "responseCode":204 + }, + "input":{"shape":"DeleteFunctionUrlConfigRequest"}, + "errors":[ + {"shape":"ResourceConflictException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ServiceException"}, + {"shape":"TooManyRequestsException"} + ] + }, "DeleteLayerVersion":{ "name":"DeleteLayerVersion", "http":{ @@ -400,6 +432,22 @@ {"shape":"TooManyRequestsException"} ] }, + "GetFunctionUrlConfig":{ + "name":"GetFunctionUrlConfig", + "http":{ + "method":"GET", + "requestUri":"/2021-10-31/functions/{FunctionName}/url", + "responseCode":200 + }, + "input":{"shape":"GetFunctionUrlConfigRequest"}, + "output":{"shape":"GetFunctionUrlConfigResponse"}, + "errors":[ + {"shape":"InvalidParameterValueException"}, + {"shape":"ServiceException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"TooManyRequestsException"} + ] + }, "GetLayerVersion":{ "name":"GetLayerVersion", "http":{ @@ -598,6 +646,22 @@ {"shape":"ServiceException"} ] }, + "ListFunctionUrlConfigs":{ + "name":"ListFunctionUrlConfigs", + "http":{ + "method":"GET", + "requestUri":"/2021-10-31/functions/{FunctionName}/urls", + "responseCode":200 + }, + "input":{"shape":"ListFunctionUrlConfigsRequest"}, + "output":{"shape":"ListFunctionUrlConfigsResponse"}, + "errors":[ + {"shape":"InvalidParameterValueException"}, + {"shape":"ServiceException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"TooManyRequestsException"} + ] + }, "ListFunctions":{ "name":"ListFunctions", "http":{ @@ -985,6 +1049,23 @@ {"shape":"TooManyRequestsException"}, {"shape":"ResourceConflictException"} ] + }, + "UpdateFunctionUrlConfig":{ + "name":"UpdateFunctionUrlConfig", + "http":{ + "method":"PUT", + "requestUri":"/2021-10-31/functions/{FunctionName}/url", + "responseCode":200 + }, + "input":{"shape":"UpdateFunctionUrlConfigRequest"}, + "output":{"shape":"UpdateFunctionUrlConfigResponse"}, + "errors":[ + {"shape":"ResourceConflictException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"ServiceException"}, + {"shape":"TooManyRequestsException"} + ] } }, "shapes":{ @@ -1073,7 +1154,8 @@ "locationName":"Qualifier" }, "RevisionId":{"shape":"String"}, - "PrincipalOrgID":{"shape":"PrincipalOrgID"} + "PrincipalOrgID":{"shape":"PrincipalOrgID"}, + "FunctionUrlAuthType":{"shape":"FunctionUrlAuthType"} } }, "AddPermissionResponse":{ @@ -1120,6 +1202,17 @@ "AdditionalVersionWeights":{"shape":"AdditionalVersionWeights"} } }, + "AllowCredentials":{"type":"boolean"}, + "AllowMethodsList":{ + "type":"list", + "member":{"shape":"Method"}, + "max":6 + }, + "AllowOriginsList":{ + "type":"list", + "member":{"shape":"Origin"}, + "max":100 + }, "AllowedPublishers":{ "type":"structure", "required":["SigningProfileVersionArns"], @@ -1246,6 +1339,17 @@ "ReservedConcurrentExecutions":{"shape":"ReservedConcurrentExecutions"} } }, + "Cors":{ + "type":"structure", + "members":{ + "AllowCredentials":{"shape":"AllowCredentials"}, + "AllowHeaders":{"shape":"HeadersList"}, + "AllowMethods":{"shape":"AllowMethodsList"}, + "AllowOrigins":{"shape":"AllowOriginsList"}, + "ExposeHeaders":{"shape":"HeadersList"}, + "MaxAge":{"shape":"MaxAge"} + } + }, "CreateAliasRequest":{ "type":"structure", "required":[ @@ -1338,6 +1442,43 @@ "EphemeralStorage":{"shape":"EphemeralStorage"} } }, + "CreateFunctionUrlConfigRequest":{ + "type":"structure", + "required":[ + "FunctionName", + "AuthType" + ], + "members":{ + "FunctionName":{ + "shape":"FunctionName", + "location":"uri", + "locationName":"FunctionName" + }, + "Qualifier":{ + "shape":"FunctionUrlQualifier", + "location":"querystring", + "locationName":"Qualifier" + }, + "AuthType":{"shape":"FunctionUrlAuthType"}, + "Cors":{"shape":"Cors"} + } + }, + "CreateFunctionUrlConfigResponse":{ + "type":"structure", + "required":[ + "FunctionUrl", + "FunctionArn", + "AuthType", + "CreationTime" + ], + "members":{ + "FunctionUrl":{"shape":"FunctionUrl"}, + "FunctionArn":{"shape":"FunctionArn"}, + "AuthType":{"shape":"FunctionUrlAuthType"}, + "Cors":{"shape":"Cors"}, + "CreationTime":{"shape":"Timestamp"} + } + }, "Date":{"type":"timestamp"}, "DeadLetterConfig":{ "type":"structure", @@ -1445,6 +1586,22 @@ } } }, + "DeleteFunctionUrlConfigRequest":{ + "type":"structure", + "required":["FunctionName"], + "members":{ + "FunctionName":{ + "shape":"FunctionName", + "location":"uri", + "locationName":"FunctionName" + }, + "Qualifier":{ + "shape":"FunctionUrlQualifier", + "location":"querystring", + "locationName":"Qualifier" + } + } + }, "DeleteLayerVersionRequest":{ "type":"structure", "required":[ @@ -1827,6 +1984,46 @@ "max":1, "min":0 }, + "FunctionUrl":{ + "type":"string", + "max":100, + "min":40 + }, + "FunctionUrlAuthType":{ + "type":"string", + "enum":[ + "NONE", + "AWS_IAM" + ] + }, + "FunctionUrlConfig":{ + "type":"structure", + "required":[ + "FunctionUrl", + "FunctionArn", + "CreationTime", + "LastModifiedTime", + "AuthType" + ], + "members":{ + "FunctionUrl":{"shape":"FunctionUrl"}, + "FunctionArn":{"shape":"FunctionArn"}, + "CreationTime":{"shape":"Timestamp"}, + "LastModifiedTime":{"shape":"Timestamp"}, + "Cors":{"shape":"Cors"}, + "AuthType":{"shape":"FunctionUrlAuthType"} + } + }, + "FunctionUrlConfigList":{ + "type":"list", + "member":{"shape":"FunctionUrlConfig"} + }, + "FunctionUrlQualifier":{ + "type":"string", + "max":128, + "min":1, + "pattern":"(^\\$LATEST$)|((?!^[0-9]+$)([a-zA-Z0-9-_]+))" + }, "FunctionVersion":{ "type":"string", "enum":["ALL"] @@ -1987,6 +2184,40 @@ "Concurrency":{"shape":"Concurrency"} } }, + "GetFunctionUrlConfigRequest":{ + "type":"structure", + "required":["FunctionName"], + "members":{ + "FunctionName":{ + "shape":"FunctionName", + "location":"uri", + "locationName":"FunctionName" + }, + "Qualifier":{ + "shape":"FunctionUrlQualifier", + "location":"querystring", + "locationName":"Qualifier" + } + } + }, + "GetFunctionUrlConfigResponse":{ + "type":"structure", + "required":[ + "FunctionUrl", + "FunctionArn", + "AuthType", + "CreationTime", + "LastModifiedTime" + ], + "members":{ + "FunctionUrl":{"shape":"FunctionUrl"}, + "FunctionArn":{"shape":"FunctionArn"}, + "AuthType":{"shape":"FunctionUrlAuthType"}, + "Cors":{"shape":"Cors"}, + "CreationTime":{"shape":"Timestamp"}, + "LastModifiedTime":{"shape":"Timestamp"} + } + }, "GetLayerVersionByArnRequest":{ "type":"structure", "required":["Arn"], @@ -2115,6 +2346,16 @@ "max":128, "pattern":"[^\\s]+" }, + "Header":{ + "type":"string", + "max":1024, + "pattern":".*" + }, + "HeadersList":{ + "type":"list", + "member":{"shape":"Header"}, + "max":100 + }, "HttpStatus":{"type":"integer"}, "ImageConfig":{ "type":"structure", @@ -2571,6 +2812,35 @@ "NextMarker":{"shape":"String"} } }, + "ListFunctionUrlConfigsRequest":{ + "type":"structure", + "required":["FunctionName"], + "members":{ + "FunctionName":{ + "shape":"FunctionName", + "location":"uri", + "locationName":"FunctionName" + }, + "Marker":{ + "shape":"String", + "location":"querystring", + "locationName":"Marker" + }, + "MaxItems":{ + "shape":"MaxItems", + "location":"querystring", + "locationName":"MaxItems" + } + } + }, + "ListFunctionUrlConfigsResponse":{ + "type":"structure", + "required":["FunctionUrlConfigs"], + "members":{ + "FunctionUrlConfigs":{"shape":"FunctionUrlConfigList"}, + "NextMarker":{"shape":"String"} + } + }, "ListFunctionsByCodeSigningConfigRequest":{ "type":"structure", "required":["CodeSigningConfigArn"], @@ -2791,11 +3061,21 @@ "type":"string", "pattern":"ALL|[a-z]{2}(-gov)?-[a-z]+-\\d{1}" }, + "MaxAge":{ + "type":"integer", + "max":86400, + "min":0 + }, "MaxFunctionEventInvokeConfigListItems":{ "type":"integer", "max":50, "min":1 }, + "MaxItems":{ + "type":"integer", + "max":50, + "min":1 + }, "MaxLayerListItems":{ "type":"integer", "max":50, @@ -2841,6 +3121,11 @@ "max":10240, "min":128 }, + "Method":{ + "type":"string", + "max":6, + "pattern":".*" + }, "NameSpacedFunctionArn":{ "type":"string", "pattern":"arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}(-gov)?-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_\\.]+(:(\\$LATEST|[a-zA-Z0-9-_]+))?" @@ -2878,6 +3163,12 @@ "max":34, "pattern":"o-[a-z0-9]{10,32}" }, + "Origin":{ + "type":"string", + "max":253, + "min":1, + "pattern":".*" + }, "PackageType":{ "type":"string", "enum":[ @@ -3662,6 +3953,42 @@ "DestinationConfig":{"shape":"DestinationConfig"} } }, + "UpdateFunctionUrlConfigRequest":{ + "type":"structure", + "required":["FunctionName"], + "members":{ + "FunctionName":{ + "shape":"FunctionName", + "location":"uri", + "locationName":"FunctionName" + }, + "Qualifier":{ + "shape":"FunctionUrlQualifier", + "location":"querystring", + "locationName":"Qualifier" + }, + "AuthType":{"shape":"FunctionUrlAuthType"}, + "Cors":{"shape":"Cors"} + } + }, + "UpdateFunctionUrlConfigResponse":{ + "type":"structure", + "required":[ + "FunctionUrl", + "FunctionArn", + "AuthType", + "CreationTime", + "LastModifiedTime" + ], + "members":{ + "FunctionUrl":{"shape":"FunctionUrl"}, + "FunctionArn":{"shape":"FunctionArn"}, + "AuthType":{"shape":"FunctionUrlAuthType"}, + "Cors":{"shape":"Cors"}, + "CreationTime":{"shape":"Timestamp"}, + "LastModifiedTime":{"shape":"Timestamp"} + } + }, "Version":{ "type":"string", "max":1024, diff --git a/models/apis/lambda/2015-03-31/docs-2.json b/models/apis/lambda/2015-03-31/docs-2.json index 27ef548ba92..ceb7e7d1e5c 100644 --- a/models/apis/lambda/2015-03-31/docs-2.json +++ b/models/apis/lambda/2015-03-31/docs-2.json @@ -8,6 +8,7 @@ "CreateCodeSigningConfig": "

Creates a code signing configuration. A code signing configuration defines a list of allowed signing profiles and defines the code-signing validation policy (action to be taken if deployment validation checks fail).

", "CreateEventSourceMapping": "

Creates a mapping between an event source and an Lambda function. Lambda reads items from the event source and triggers the function.

For details about how to configure different event sources, see the following topics.

The following error handling options are only available for stream sources (DynamoDB and Kinesis):

For information about which configuration parameters apply to each event source, see the following topics.

", "CreateFunction": "

Creates a Lambda function. To create a function, you need a deployment package and an execution role. The deployment package is a .zip file archive or container image that contains your function code. The execution role grants the function permission to use Amazon Web Services services, such as Amazon CloudWatch Logs for log streaming and X-Ray for request tracing.

You set the package type to Image if the deployment package is a container image. For a container image, the code property must include the URI of a container image in the Amazon ECR registry. You do not need to specify the handler and runtime properties.

You set the package type to Zip if the deployment package is a .zip file archive. For a .zip file archive, the code property specifies the location of the .zip file. You must also specify the handler and runtime properties. The code in the deployment package must be compatible with the target instruction set architecture of the function (x86-64 or arm64). If you do not specify the architecture, the default value is x86-64.

When you create a function, Lambda provisions an instance of the function and its supporting resources. If your function connects to a VPC, this process can take a minute or so. During this time, you can't invoke or modify the function. The State, StateReason, and StateReasonCode fields in the response from GetFunctionConfiguration indicate when the function is ready to invoke. For more information, see Function States.

A function has an unpublished version, and can have published versions and aliases. The unpublished version changes when you update your function's code and configuration. A published version is a snapshot of your function code and configuration that can't be changed. An alias is a named resource that maps to a version, and can be changed to map to a different version. Use the Publish parameter to create version 1 of your function from its initial configuration.

The other parameters let you configure version-specific and function-level settings. You can modify version-specific settings later with UpdateFunctionConfiguration. Function-level settings apply to both the unpublished and published versions of the function, and include tags (TagResource) and per-function concurrency limits (PutFunctionConcurrency).

You can use code signing if your deployment package is a .zip file archive. To enable code signing for this function, specify the ARN of a code-signing configuration. When a user attempts to deploy a code package with UpdateFunctionCode, Lambda checks that the code package has a valid signature from a trusted publisher. The code-signing configuration includes set set of signing profiles, which define the trusted publishers for this function.

If another account or an Amazon Web Services service invokes your function, use AddPermission to grant permission by creating a resource-based IAM policy. You can grant permissions at the function level, on a version, or on an alias.

To invoke your function directly, use Invoke. To invoke your function in response to events in other Amazon Web Services services, create an event source mapping (CreateEventSourceMapping), or configure a function trigger in the other service. For more information, see Invoking Functions.

", + "CreateFunctionUrlConfig": "

Creates a Lambda function URL with the specified configuration parameters. A function URL is a dedicated HTTP(S) endpoint that you can use to invoke your function.

", "DeleteAlias": "

Deletes a Lambda function alias.

", "DeleteCodeSigningConfig": "

Deletes the code signing configuration. You can delete the code signing configuration only if no function is using it.

", "DeleteEventSourceMapping": "

Deletes an event source mapping. You can get the identifier of a mapping from the output of ListEventSourceMappings.

When you delete an event source mapping, it enters a Deleting state and might not be completely deleted for several seconds.

", @@ -15,6 +16,7 @@ "DeleteFunctionCodeSigningConfig": "

Removes the code signing configuration from the function.

", "DeleteFunctionConcurrency": "

Removes a concurrent execution limit from a function.

", "DeleteFunctionEventInvokeConfig": "

Deletes the configuration for asynchronous invocation for a function, version, or alias.

To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.

", + "DeleteFunctionUrlConfig": "

Deletes a Lambda function URL. When you delete a function URL, you can't recover it. Creating a new function URL results in a different URL address.

", "DeleteLayerVersion": "

Deletes a version of an Lambda layer. Deleted versions can no longer be viewed or added to functions. To avoid breaking functions, a copy of the version remains in Lambda until no functions refer to it.

", "DeleteProvisionedConcurrencyConfig": "

Deletes the provisioned concurrency configuration for a function.

", "GetAccountSettings": "

Retrieves details about your account's limits and usage in an Amazon Web Services Region.

", @@ -26,6 +28,7 @@ "GetFunctionConcurrency": "

Returns details about the reserved concurrency configuration for a function. To set a concurrency limit for a function, use PutFunctionConcurrency.

", "GetFunctionConfiguration": "

Returns the version-specific settings of a Lambda function or version. The output includes only options that can vary between versions of a function. To modify these settings, use UpdateFunctionConfiguration.

To get all of a function's details, including function-level settings, use GetFunction.

", "GetFunctionEventInvokeConfig": "

Retrieves the configuration for asynchronous invocation for a function, version, or alias.

To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.

", + "GetFunctionUrlConfig": "

Returns details about a Lambda function URL.

", "GetLayerVersion": "

Returns information about a version of an Lambda layer, with a link to download the layer archive that's valid for 10 minutes.

", "GetLayerVersionByArn": "

Returns information about a version of an Lambda layer, with a link to download the layer archive that's valid for 10 minutes.

", "GetLayerVersionPolicy": "

Returns the permission policy for a version of an Lambda layer. For more information, see AddLayerVersionPermission.

", @@ -37,6 +40,7 @@ "ListCodeSigningConfigs": "

Returns a list of code signing configurations. A request returns up to 10,000 configurations per call. You can use the MaxItems parameter to return fewer configurations per call.

", "ListEventSourceMappings": "

Lists event source mappings. Specify an EventSourceArn to only show event source mappings for a single event source.

", "ListFunctionEventInvokeConfigs": "

Retrieves a list of configurations for asynchronous invocation for a function.

To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.

", + "ListFunctionUrlConfigs": "

Returns a list of Lambda function URLs for the specified function.

", "ListFunctions": "

Returns a list of Lambda functions, with the version-specific configuration of each. Lambda returns up to 50 functions per call.

Set FunctionVersion to ALL to include all published versions of each function in addition to the unpublished version.

The ListFunctions action returns a subset of the FunctionConfiguration fields. To get the additional fields (State, StateReasonCode, StateReason, LastUpdateStatus, LastUpdateStatusReason, LastUpdateStatusReasonCode) for a function or version, use GetFunction.

", "ListFunctionsByCodeSigningConfig": "

List the functions that use the specified code signing configuration. You can use this method prior to deleting a code signing configuration, to verify that no functions are using it.

", "ListLayerVersions": "

Lists the versions of an Lambda layer. Versions that have been deleted aren't listed. Specify a runtime identifier to list only versions that indicate that they're compatible with that runtime. Specify a compatible architecture to include only layer versions that are compatible with that architecture.

", @@ -59,7 +63,8 @@ "UpdateEventSourceMapping": "

Updates an event source mapping. You can change the function that Lambda invokes, or pause invocation and resume later from the same location.

For details about how to configure different event sources, see the following topics.

The following error handling options are only available for stream sources (DynamoDB and Kinesis):

For information about which configuration parameters apply to each event source, see the following topics.

", "UpdateFunctionCode": "

Updates a Lambda function's code. If code signing is enabled for the function, the code package must be signed by a trusted publisher. For more information, see Configuring code signing.

If the function's package type is Image, you must specify the code package in ImageUri as the URI of a container image in the Amazon ECR registry.

If the function's package type is Zip, you must specify the deployment package as a .zip file archive. Enter the Amazon S3 bucket and key of the code .zip file location. You can also provide the function code inline using the ZipFile field.

The code in the deployment package must be compatible with the target instruction set architecture of the function (x86-64 or arm64).

The function's code is locked when you publish a version. You can't modify the code of a published version, only the unpublished version.

For a function defined as a container image, Lambda resolves the image tag to an image digest. In Amazon ECR, if you update the image tag to a new image, Lambda does not automatically update the function.

", "UpdateFunctionConfiguration": "

Modify the version-specific settings of a Lambda function.

When you update a function, Lambda provisions an instance of the function and its supporting resources. If your function connects to a VPC, this process can take a minute. During this time, you can't modify the function, but you can still invoke it. The LastUpdateStatus, LastUpdateStatusReason, and LastUpdateStatusReasonCode fields in the response from GetFunctionConfiguration indicate when the update is complete and the function is processing events with the new configuration. For more information, see Function States.

These settings can vary between versions of a function and are locked when you publish a version. You can't modify the configuration of a published version, only the unpublished version.

To configure function concurrency, use PutFunctionConcurrency. To grant invoke permissions to an account or Amazon Web Services service, use AddPermission.

", - "UpdateFunctionEventInvokeConfig": "

Updates the configuration for asynchronous invocation for a function, version, or alias.

To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.

" + "UpdateFunctionEventInvokeConfig": "

Updates the configuration for asynchronous invocation for a function, version, or alias.

To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.

", + "UpdateFunctionUrlConfig": "

Updates the configuration for a Lambda function URL.

" }, "shapes": { "AccountLimit": { @@ -142,6 +147,24 @@ "UpdateAliasRequest$RoutingConfig": "

The routing configuration of the alias.

" } }, + "AllowCredentials": { + "base": null, + "refs": { + "Cors$AllowCredentials": "

Whether to allow cookies or other credentials in requests to your function URL. The default is false.

" + } + }, + "AllowMethodsList": { + "base": null, + "refs": { + "Cors$AllowMethods": "

The HTTP methods that are allowed when calling your function URL. For example: GET, POST, DELETE, or the wildcard character (*).

" + } + }, + "AllowOriginsList": { + "base": null, + "refs": { + "Cors$AllowOrigins": "

The origins that can access your function URL. You can list any number of specific origins, separated by a comma. For example: https://www.example.com, http://localhost:60905.

Alternatively, you can grant access to all origins using the wildcard character (*).

" + } + }, "AllowedPublishers": { "base": "

List of signing profiles that can sign a code package.

", "refs": { @@ -309,6 +332,17 @@ "GetFunctionResponse$Concurrency": "

The function's reserved concurrency.

" } }, + "Cors": { + "base": "

The cross-origin resource sharing (CORS) settings for your Lambda function URL. Use CORS to grant access to your function URL from any origin. You can also use CORS to control access for specific HTTP headers and methods in requests to your function URL.

", + "refs": { + "CreateFunctionUrlConfigRequest$Cors": "

The cross-origin resource sharing (CORS) settings for your function URL.

", + "CreateFunctionUrlConfigResponse$Cors": "

The cross-origin resource sharing (CORS) settings for your function URL.

", + "FunctionUrlConfig$Cors": "

The cross-origin resource sharing (CORS) settings for your function URL.

", + "GetFunctionUrlConfigResponse$Cors": "

The cross-origin resource sharing (CORS) settings for your function URL.

", + "UpdateFunctionUrlConfigRequest$Cors": "

The cross-origin resource sharing (CORS) settings for your function URL.

", + "UpdateFunctionUrlConfigResponse$Cors": "

The cross-origin resource sharing (CORS) settings for your function URL.

" + } + }, "CreateAliasRequest": { "base": null, "refs": { @@ -334,6 +368,16 @@ "refs": { } }, + "CreateFunctionUrlConfigRequest": { + "base": null, + "refs": { + } + }, + "CreateFunctionUrlConfigResponse": { + "base": null, + "refs": { + } + }, "Date": { "base": null, "refs": { @@ -391,6 +435,11 @@ "refs": { } }, + "DeleteFunctionUrlConfigRequest": { + "base": null, + "refs": { + } + }, "DeleteLayerVersionRequest": { "base": null, "refs": { @@ -630,14 +679,18 @@ "base": null, "refs": { "AliasConfiguration$AliasArn": "

The Amazon Resource Name (ARN) of the alias.

", + "CreateFunctionUrlConfigResponse$FunctionArn": "

The Amazon Resource Name (ARN) of your function.

", "EventSourceMappingConfiguration$FunctionArn": "

The ARN of the Lambda function.

", "FunctionArnList$member": null, "FunctionConfiguration$MasterArn": "

For Lambda@Edge functions, the ARN of the main function.

", "FunctionEventInvokeConfig$FunctionArn": "

The Amazon Resource Name (ARN) of the function.

", + "FunctionUrlConfig$FunctionArn": "

The Amazon Resource Name (ARN) of your function.

", + "GetFunctionUrlConfigResponse$FunctionArn": "

The Amazon Resource Name (ARN) of your function.

", "ListTagsRequest$Resource": "

The function's Amazon Resource Name (ARN). Note: Lambda does not support adding tags to aliases or versions.

", "ProvisionedConcurrencyConfigListItem$FunctionArn": "

The Amazon Resource Name (ARN) of the alias or version.

", "TagResourceRequest$Resource": "

The function's Amazon Resource Name (ARN).

", - "UntagResourceRequest$Resource": "

The function's Amazon Resource Name (ARN).

" + "UntagResourceRequest$Resource": "

The function's Amazon Resource Name (ARN).

", + "UpdateFunctionUrlConfigResponse$FunctionArn": "

The Amazon Resource Name (ARN) of your function.

" } }, "FunctionArnList": { @@ -691,21 +744,25 @@ "CreateAliasRequest$FunctionName": "

The name of the Lambda function.

Name formats

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", "CreateEventSourceMappingRequest$FunctionName": "

The name of the Lambda function.

Name formats

The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.

", "CreateFunctionRequest$FunctionName": "

The name of the Lambda function.

Name formats

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", + "CreateFunctionUrlConfigRequest$FunctionName": "

The name of the Lambda function.

Name formats

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", "DeleteAliasRequest$FunctionName": "

The name of the Lambda function.

Name formats

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", "DeleteFunctionCodeSigningConfigRequest$FunctionName": "

The name of the Lambda function.

Name formats

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", "DeleteFunctionConcurrencyRequest$FunctionName": "

The name of the Lambda function.

Name formats

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", "DeleteFunctionEventInvokeConfigRequest$FunctionName": "

The name of the Lambda function, version, or alias.

Name formats

You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", "DeleteFunctionRequest$FunctionName": "

The name of the Lambda function or version.

Name formats

You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", + "DeleteFunctionUrlConfigRequest$FunctionName": "

The name of the Lambda function.

Name formats

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", "DeleteProvisionedConcurrencyConfigRequest$FunctionName": "

The name of the Lambda function.

Name formats

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", "GetAliasRequest$FunctionName": "

The name of the Lambda function.

Name formats

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", "GetFunctionCodeSigningConfigRequest$FunctionName": "

The name of the Lambda function.

Name formats

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", "GetFunctionCodeSigningConfigResponse$FunctionName": "

The name of the Lambda function.

Name formats

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", "GetFunctionConcurrencyRequest$FunctionName": "

The name of the Lambda function.

Name formats

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", "GetFunctionEventInvokeConfigRequest$FunctionName": "

The name of the Lambda function, version, or alias.

Name formats

You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", + "GetFunctionUrlConfigRequest$FunctionName": "

The name of the Lambda function.

Name formats

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", "GetProvisionedConcurrencyConfigRequest$FunctionName": "

The name of the Lambda function.

Name formats

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", "ListAliasesRequest$FunctionName": "

The name of the Lambda function.

Name formats

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", "ListEventSourceMappingsRequest$FunctionName": "

The name of the Lambda function.

Name formats

The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.

", "ListFunctionEventInvokeConfigsRequest$FunctionName": "

The name of the Lambda function.

Name formats

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", + "ListFunctionUrlConfigsRequest$FunctionName": "

The name of the Lambda function.

Name formats

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", "ListProvisionedConcurrencyConfigsRequest$FunctionName": "

The name of the Lambda function.

Name formats

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", "PublishVersionRequest$FunctionName": "

The name of the Lambda function.

Name formats

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", "PutFunctionCodeSigningConfigRequest$FunctionName": "

The name of the Lambda function.

Name formats

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", @@ -718,7 +775,8 @@ "UpdateEventSourceMappingRequest$FunctionName": "

The name of the Lambda function.

Name formats

The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.

", "UpdateFunctionCodeRequest$FunctionName": "

The name of the Lambda function.

Name formats

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", "UpdateFunctionConfigurationRequest$FunctionName": "

The name of the Lambda function.

Name formats

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", - "UpdateFunctionEventInvokeConfigRequest$FunctionName": "

The name of the Lambda function, version, or alias.

Name formats

You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

" + "UpdateFunctionEventInvokeConfigRequest$FunctionName": "

The name of the Lambda function, version, or alias.

Name formats

You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", + "UpdateFunctionUrlConfigRequest$FunctionName": "

The name of the Lambda function.

Name formats

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

" } }, "FunctionResponseType": { @@ -735,6 +793,48 @@ "UpdateEventSourceMappingRequest$FunctionResponseTypes": "

(Streams and Amazon SQS) A list of current response type enums applied to the event source mapping.

" } }, + "FunctionUrl": { + "base": null, + "refs": { + "CreateFunctionUrlConfigResponse$FunctionUrl": "

The HTTP URL endpoint for your function.

", + "FunctionUrlConfig$FunctionUrl": "

The HTTP URL endpoint for your function.

", + "GetFunctionUrlConfigResponse$FunctionUrl": "

The HTTP URL endpoint for your function.

", + "UpdateFunctionUrlConfigResponse$FunctionUrl": "

The HTTP URL endpoint for your function.

" + } + }, + "FunctionUrlAuthType": { + "base": null, + "refs": { + "AddPermissionRequest$FunctionUrlAuthType": "

The type of authentication that your function URL uses. Set to AWS_IAM if you want to restrict access to authenticated IAM users only. Set to NONE if you want to bypass IAM authentication to create a public endpoint. For more information, see Security and auth model for Lambda function URLs.

", + "CreateFunctionUrlConfigRequest$AuthType": "

The type of authentication that your function URL uses. Set to AWS_IAM if you want to restrict access to authenticated IAM users only. Set to NONE if you want to bypass IAM authentication to create a public endpoint. For more information, see Security and auth model for Lambda function URLs.

", + "CreateFunctionUrlConfigResponse$AuthType": "

The type of authentication that your function URL uses. Set to AWS_IAM if you want to restrict access to authenticated IAM users only. Set to NONE if you want to bypass IAM authentication to create a public endpoint. For more information, see Security and auth model for Lambda function URLs.

", + "FunctionUrlConfig$AuthType": "

The type of authentication that your function URL uses. Set to AWS_IAM if you want to restrict access to authenticated IAM users only. Set to NONE if you want to bypass IAM authentication to create a public endpoint. For more information, see Security and auth model for Lambda function URLs.

", + "GetFunctionUrlConfigResponse$AuthType": "

The type of authentication that your function URL uses. Set to AWS_IAM if you want to restrict access to authenticated IAM users only. Set to NONE if you want to bypass IAM authentication to create a public endpoint. For more information, see Security and auth model for Lambda function URLs.

", + "UpdateFunctionUrlConfigRequest$AuthType": "

The type of authentication that your function URL uses. Set to AWS_IAM if you want to restrict access to authenticated IAM users only. Set to NONE if you want to bypass IAM authentication to create a public endpoint. For more information, see Security and auth model for Lambda function URLs.

", + "UpdateFunctionUrlConfigResponse$AuthType": "

The type of authentication that your function URL uses. Set to AWS_IAM if you want to restrict access to authenticated IAM users only. Set to NONE if you want to bypass IAM authentication to create a public endpoint. For more information, see Security and auth model for Lambda function URLs.

" + } + }, + "FunctionUrlConfig": { + "base": "

Details about a Lambda function URL.

", + "refs": { + "FunctionUrlConfigList$member": null + } + }, + "FunctionUrlConfigList": { + "base": null, + "refs": { + "ListFunctionUrlConfigsResponse$FunctionUrlConfigs": "

A list of function URL configurations.

" + } + }, + "FunctionUrlQualifier": { + "base": null, + "refs": { + "CreateFunctionUrlConfigRequest$Qualifier": "

The alias name.

", + "DeleteFunctionUrlConfigRequest$Qualifier": "

The alias name.

", + "GetFunctionUrlConfigRequest$Qualifier": "

The alias name.

", + "UpdateFunctionUrlConfigRequest$Qualifier": "

The alias name.

" + } + }, "FunctionVersion": { "base": null, "refs": { @@ -811,6 +911,16 @@ "refs": { } }, + "GetFunctionUrlConfigRequest": { + "base": null, + "refs": { + } + }, + "GetFunctionUrlConfigResponse": { + "base": null, + "refs": { + } + }, "GetLayerVersionByArnRequest": { "base": null, "refs": { @@ -864,6 +974,19 @@ "UpdateFunctionConfigurationRequest$Handler": "

The name of the method within your code that Lambda calls to execute your function. Handler is required if the deployment package is a .zip file archive. The format includes the file name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, see Programming Model.

" } }, + "Header": { + "base": null, + "refs": { + "HeadersList$member": null + } + }, + "HeadersList": { + "base": null, + "refs": { + "Cors$AllowHeaders": "

The HTTP headers that origins can include in requests to your function URL. For example: Date, Keep-Alive, X-Custom-Header.

", + "Cors$ExposeHeaders": "

The HTTP headers in your function response that you want to expose to origins that call your function URL. For example: Date, Keep-Alive, X-Custom-Header.

" + } + }, "HttpStatus": { "base": null, "refs": { @@ -1167,6 +1290,16 @@ "refs": { } }, + "ListFunctionUrlConfigsRequest": { + "base": null, + "refs": { + } + }, + "ListFunctionUrlConfigsResponse": { + "base": null, + "refs": { + } + }, "ListFunctionsByCodeSigningConfigRequest": { "base": null, "refs": { @@ -1268,12 +1401,24 @@ "ListFunctionsRequest$MasterRegion": "

For Lambda@Edge functions, the Amazon Web Services Region of the master function. For example, us-east-1 filters the list of functions to only include Lambda@Edge functions replicated from a master function in US East (N. Virginia). If specified, you must set FunctionVersion to ALL.

" } }, + "MaxAge": { + "base": null, + "refs": { + "Cors$MaxAge": "

The maximum amount of time, in seconds, that web browsers can cache results of a preflight request. By default, this is set to 0, which means that the browser doesn't cache results.

" + } + }, "MaxFunctionEventInvokeConfigListItems": { "base": null, "refs": { "ListFunctionEventInvokeConfigsRequest$MaxItems": "

The maximum number of configurations to return.

" } }, + "MaxItems": { + "base": null, + "refs": { + "ListFunctionUrlConfigsRequest$MaxItems": "

The maximum number of function URLs to return in the response. Note that ListFunctionUrlConfigs returns a maximum of 50 items in each response, even if you set the number higher.

" + } + }, "MaxLayerListItems": { "base": null, "refs": { @@ -1346,6 +1491,12 @@ "UpdateFunctionConfigurationRequest$MemorySize": "

The amount of memory available to the function at runtime. Increasing the function memory also increases its CPU allocation. The default value is 128 MB. The value can be any multiple of 1 MB.

" } }, + "Method": { + "base": null, + "refs": { + "AllowMethodsList$member": null + } + }, "NameSpacedFunctionArn": { "base": null, "refs": { @@ -1399,6 +1550,12 @@ "AddLayerVersionPermissionRequest$OrganizationId": "

With the principal set to *, grant permission to all accounts in the specified organization.

" } }, + "Origin": { + "base": null, + "refs": { + "AllowOriginsList$member": null + } + }, "PackageType": { "base": null, "refs": { @@ -1824,6 +1981,8 @@ "ListEventSourceMappingsResponse$NextMarker": "

A pagination token that's returned when the response doesn't contain all event source mappings.

", "ListFunctionEventInvokeConfigsRequest$Marker": "

Specify the pagination token that's returned by a previous request to retrieve the next page of results.

", "ListFunctionEventInvokeConfigsResponse$NextMarker": "

The pagination token that's included if more results are available.

", + "ListFunctionUrlConfigsRequest$Marker": "

Specify the pagination token that's returned by a previous request to retrieve the next page of results.

", + "ListFunctionUrlConfigsResponse$NextMarker": "

The pagination token that's included if more results are available.

", "ListFunctionsByCodeSigningConfigRequest$Marker": "

Specify the pagination token that's returned by a previous request to retrieve the next page of results.

", "ListFunctionsByCodeSigningConfigResponse$NextMarker": "

The pagination token that's included if more results are available.

", "ListFunctionsRequest$Marker": "

Specify the pagination token that's returned by a previous request to retrieve the next page of results.

", @@ -1951,13 +2110,20 @@ "base": null, "refs": { "CodeSigningConfig$LastModified": "

The date and time that the Code signing configuration was last modified, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

", + "CreateFunctionUrlConfigResponse$CreationTime": "

When the function URL was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

", "FunctionConfiguration$LastModified": "

The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

", + "FunctionUrlConfig$CreationTime": "

When the function URL was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

", + "FunctionUrlConfig$LastModifiedTime": "

When the function URL configuration was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

", + "GetFunctionUrlConfigResponse$CreationTime": "

When the function URL was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

", + "GetFunctionUrlConfigResponse$LastModifiedTime": "

When the function URL configuration was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

", "GetLayerVersionResponse$CreatedDate": "

The date that the layer version was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

", "GetProvisionedConcurrencyConfigResponse$LastModified": "

The date and time that a user last updated the configuration, in ISO 8601 format.

", "LayerVersionsListItem$CreatedDate": "

The date that the version was created, in ISO 8601 format. For example, 2018-11-27T15:10:45.123+0000.

", "ProvisionedConcurrencyConfigListItem$LastModified": "

The date and time that a user last updated the configuration, in ISO 8601 format.

", "PublishLayerVersionResponse$CreatedDate": "

The date that the layer version was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

", - "PutProvisionedConcurrencyConfigResponse$LastModified": "

The date and time that a user last updated the configuration, in ISO 8601 format.

" + "PutProvisionedConcurrencyConfigResponse$LastModified": "

The date and time that a user last updated the configuration, in ISO 8601 format.

", + "UpdateFunctionUrlConfigResponse$CreationTime": "

When the function URL was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

", + "UpdateFunctionUrlConfigResponse$LastModifiedTime": "

When the function URL configuration was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

" } }, "TooManyRequestsException": { @@ -2063,6 +2229,16 @@ "refs": { } }, + "UpdateFunctionUrlConfigRequest": { + "base": null, + "refs": { + } + }, + "UpdateFunctionUrlConfigResponse": { + "base": null, + "refs": { + } + }, "Version": { "base": null, "refs": { diff --git a/models/apis/lambda/2015-03-31/paginators-1.json b/models/apis/lambda/2015-03-31/paginators-1.json index cd03e6bb38f..08b730744a3 100644 --- a/models/apis/lambda/2015-03-31/paginators-1.json +++ b/models/apis/lambda/2015-03-31/paginators-1.json @@ -24,6 +24,12 @@ "output_token": "NextMarker", "result_key": "FunctionEventInvokeConfigs" }, + "ListFunctionUrlConfigs": { + "input_token": "Marker", + "limit_key": "MaxItems", + "output_token": "NextMarker", + "result_key": "FunctionUrlConfigs" + }, "ListFunctions": { "input_token": "Marker", "limit_key": "MaxItems", diff --git a/models/apis/panorama/2019-07-24/api-2.json b/models/apis/panorama/2019-07-24/api-2.json index ace59a96091..c21a718bb16 100644 --- a/models/apis/panorama/2019-07-24/api-2.json +++ b/models/apis/panorama/2019-07-24/api-2.json @@ -623,7 +623,8 @@ "REMOVAL_REQUESTED", "REMOVAL_IN_PROGRESS", "REMOVAL_FAILED", - "REMOVAL_SUCCEEDED" + "REMOVAL_SUCCEEDED", + "DEPLOYMENT_FAILED" ] }, "ApplicationInstanceStatusDescription":{ @@ -992,6 +993,7 @@ "members":{ "AlternateSoftwares":{"shape":"AlternateSoftwares"}, "Arn":{"shape":"DeviceArn"}, + "Brand":{"shape":"DeviceBrand"}, "CreatedTime":{"shape":"CreatedTime"}, "CurrentNetworkingStatus":{"shape":"NetworkStatus"}, "CurrentSoftware":{"shape":"CurrentSoftware"}, @@ -1229,6 +1231,7 @@ "Device":{ "type":"structure", "members":{ + "Brand":{"shape":"DeviceBrand"}, "CreatedTime":{"shape":"CreatedTime"}, "DeviceId":{"shape":"DeviceId"}, "LastUpdatedTime":{"shape":"LastUpdatedTime"}, @@ -1242,6 +1245,13 @@ "max":255, "min":1 }, + "DeviceBrand":{ + "type":"string", + "enum":[ + "AWS_PANORAMA", + "LENOVO" + ] + }, "DeviceConnectionStatus":{ "type":"string", "enum":[ @@ -2331,7 +2341,8 @@ "REMOVAL_SUCCEEDED", "REMOVAL_FAILED", "PROCESSING_DEPLOYMENT", - "PROCESSING_REMOVAL" + "PROCESSING_REMOVAL", + "DEPLOYMENT_FAILED" ] }, "StorageLocation":{ diff --git a/models/apis/panorama/2019-07-24/docs-2.json b/models/apis/panorama/2019-07-24/docs-2.json index 6a91023ff26..5c8904caf28 100644 --- a/models/apis/panorama/2019-07-24/docs-2.json +++ b/models/apis/panorama/2019-07-24/docs-2.json @@ -29,7 +29,7 @@ "ListPackageImportJobs": "

Returns a list of package import jobs.

", "ListPackages": "

Returns a list of packages.

", "ListTagsForResource": "

Returns a list of tags for a resource.

", - "ProvisionDevice": "

Creates a device and returns a configuration archive. The configuration archive is a ZIP file that contains a provisioning certificate that is valid for 5 minutes. Transfer the configuration archive to the device with the included USB storage device within 5 minutes.

", + "ProvisionDevice": "

Creates a device and returns a configuration archive. The configuration archive is a ZIP file that contains a provisioning certificate that is valid for 5 minutes. Name the configuration archive certificates-omni_device-name.zip and transfer it to the device within 5 minutes. Use the included USB storage device and connect it to the USB 3.0 port next to the HDMI output.

", "RegisterPackageVersion": "

Registers a package version.

", "RemoveApplicationInstance": "

Removes an application instance.

", "TagResource": "

Tags a resource.

", @@ -411,6 +411,13 @@ "ProvisionDeviceResponse$Arn": "

The device's ARN.

" } }, + "DeviceBrand": { + "base": null, + "refs": { + "DescribeDeviceResponse$Brand": "

The device's maker.

", + "Device$Brand": "

The device's maker.

" + } + }, "DeviceConnectionStatus": { "base": null, "refs": { diff --git a/models/endpoints/endpoints.json b/models/endpoints/endpoints.json index 49493a71540..6a2efa27293 100644 --- a/models/endpoints/endpoints.json +++ b/models/endpoints/endpoints.json @@ -6539,8 +6539,32 @@ "ap-southeast-2" : { }, "eu-central-1" : { }, "eu-west-1" : { }, - "us-east-1" : { }, - "us-west-2" : { } + "fips-us-east-1" : { + "credentialScope" : { + "region" : "us-east-1" + }, + "deprecated" : true, + "hostname" : "iotsitewise-fips.us-east-1.amazonaws.com" + }, + "fips-us-west-2" : { + "credentialScope" : { + "region" : "us-west-2" + }, + "deprecated" : true, + "hostname" : "iotsitewise-fips.us-west-2.amazonaws.com" + }, + "us-east-1" : { + "variants" : [ { + "hostname" : "iotsitewise-fips.us-east-1.amazonaws.com", + "tags" : [ "fips" ] + } ] + }, + "us-west-2" : { + "variants" : [ { + "hostname" : "iotsitewise-fips.us-west-2.amazonaws.com", + "tags" : [ "fips" ] + } ] + } } }, "iotthingsgraph" : { @@ -9042,6 +9066,7 @@ "ap-south-1" : { }, "ap-southeast-1" : { }, "ap-southeast-2" : { }, + "ap-southeast-3" : { }, "ca-central-1" : { "variants" : [ { "hostname" : "ram-fips.ca-central-1.amazonaws.com", @@ -15963,7 +15988,19 @@ }, "iotsitewise" : { "endpoints" : { - "us-gov-west-1" : { } + "fips-us-gov-west-1" : { + "credentialScope" : { + "region" : "us-gov-west-1" + }, + "deprecated" : true, + "hostname" : "iotsitewise-fips.us-gov-west-1.amazonaws.com" + }, + "us-gov-west-1" : { + "variants" : [ { + "hostname" : "iotsitewise-fips.us-gov-west-1.amazonaws.com", + "tags" : [ "fips" ] + } ] + } } }, "kafka" : { diff --git a/service/configservice/api.go b/service/configservice/api.go index b54ad0d51b1..9becb68e337 100644 --- a/service/configservice/api.go +++ b/service/configservice/api.go @@ -8609,11 +8609,11 @@ func (c *ConfigService) PutConfigRuleRequest(input *PutConfigRuleInput) (req *re // Adds or updates an Config rule for evaluating whether your Amazon Web Services // resources comply with your desired configurations. // -// You can use this action for custom Config rules and Config managed rules. -// A custom Config rule is a rule that you develop and maintain. An Config managed +// You can use this action for Config custom rules and Config managed rules. +// A Config custom rule is a rule that you develop and maintain. An Config managed // rule is a customizable, predefined rule that Config provides. // -// If you are adding a new custom Config rule, you must first create the Lambda +// If you are adding a new Config custom rule, you must first create the Lambda // function that the rule invokes to evaluate your resources. When you use the // PutConfigRule action to add the rule to Config, you must specify the Amazon // Resource Name (ARN) that Lambda assigns to the function. Specify the ARN @@ -9465,8 +9465,8 @@ func (c *ConfigService) PutOrganizationConfigRuleRequest(input *PutOrganizationC // by calling Amazon Web Services Organization register-delegated-administrator // for config-multiaccountsetup.amazonaws.com. // -// You can use this action to create both custom Config rules and Config managed -// rules. If you are adding a new custom Config rule, you must first create +// You can use this action to create both Config custom rules and Config managed +// rules. If you are adding a new Config custom rule, you must first create // Lambda function in the master account or a delegated administrator that the // rule invokes to evaluate your resources. You also need to create an IAM role // in the managed-account that can be assumed by the Lambda function. When you @@ -31987,6 +31987,12 @@ const ( // ResourceTypeAwsGuardDutyDetector is a ResourceType enum value ResourceTypeAwsGuardDutyDetector = "AWS::GuardDuty::Detector" + + // ResourceTypeAwsEmrSecurityConfiguration is a ResourceType enum value + ResourceTypeAwsEmrSecurityConfiguration = "AWS::EMR::SecurityConfiguration" + + // ResourceTypeAwsSageMakerCodeRepository is a ResourceType enum value + ResourceTypeAwsSageMakerCodeRepository = "AWS::SageMaker::CodeRepository" ) // ResourceType_Values returns all elements of the ResourceType enum @@ -32110,6 +32116,8 @@ func ResourceType_Values() []string { ResourceTypeAwsEc2LaunchTemplate, ResourceTypeAwsEcrPublicRepository, ResourceTypeAwsGuardDutyDetector, + ResourceTypeAwsEmrSecurityConfiguration, + ResourceTypeAwsSageMakerCodeRepository, } } diff --git a/service/kendra/api.go b/service/kendra/api.go index 5f06dbc3ea5..b30ad39560d 100644 --- a/service/kendra/api.go +++ b/service/kendra/api.go @@ -2117,7 +2117,7 @@ func (c *Kendra) DescribeIndexRequest(input *DescribeIndexInput) (req *request.R // DescribeIndex API operation for AWSKendraFrontendService. // -// Describes an existing Amazon Kendra index +// Describes an existing Amazon Kendra index. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3896,7 +3896,7 @@ func (c *Kendra) ListIndicesRequest(input *ListIndicesInput) (req *request.Reque // ListIndices API operation for AWSKendraFrontendService. // -// Lists the Amazon Kendra indexes that you have created. +// Lists the Amazon Kendra indexes that you created. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -6879,8 +6879,281 @@ func (s *BatchPutDocumentResponseFailedDocument) SetId(v string) *BatchPutDocume return s } -// Specifies capacity units configured for your enterprise edition index. You -// can add and remove capacity units to tune an index to your requirements. +// Provides the configuration information to connect to Box as your data source. +type BoxConfiguration struct { + _ struct{} `type:"structure"` + + // A list of DataSourceToIndexFieldMapping objects that map attributes or field + // names of Box comments to Amazon Kendra index field names. To create custom + // fields, use the UpdateIndex API before you map to Box fields. For more information, + // see Mapping data source fields (https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html). + // The Box field names must exist in your Box custom metadata. + CommentFieldMappings []*DataSourceToIndexFieldMapping `min:"1" type:"list"` + + // TRUE to index comments. + CrawlComments *bool `type:"boolean"` + + // TRUE to index the contents of tasks. + CrawlTasks *bool `type:"boolean"` + + // TRUE to index web links. + CrawlWebLinks *bool `type:"boolean"` + + // The identifier of the Box Enterprise platform. You can find the enterprise + // ID in the Box Developer Console settings or when you create an app in Box + // and download your authentication credentials. For example, 801234567. + // + // EnterpriseId is a required field + EnterpriseId *string `min:"1" type:"string" required:"true"` + + // A list of regular expression patterns to exclude certain files and folders + // from your Box platform. Files and folders that match the patterns are excluded + // from the index.Files and folders that don't match the patterns are included + // in the index. If a file or folder matches both an inclusion and exclusion + // pattern, the exclusion pattern takes precedence and the file or folder isn't + // included in the index. + ExclusionPatterns []*string `type:"list"` + + // A list of DataSourceToIndexFieldMapping objects that map attributes or field + // names of Box files to Amazon Kendra index field names. To create custom fields, + // use the UpdateIndex API before you map to Box fields. For more information, + // see Mapping data source fields (https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html). + // The Box field names must exist in your Box custom metadata. + FileFieldMappings []*DataSourceToIndexFieldMapping `min:"1" type:"list"` + + // A list of regular expression patterns to include certain files and folders + // in your Box platform. Files and folders that match the patterns are included + // in the index. Files and folders that don't match the patterns are excluded + // from the index. If a file or folder matches both an inclusion and exclusion + // pattern, the exclusion pattern takes precedence and the file or folder isn't + // included in the index. + InclusionPatterns []*string `type:"list"` + + // The Amazon Resource Name (ARN) of an Secrets Manager secret that contains + // the key-value pairs required to connect to your Box platform. The secret + // must contain a JSON structure with the following keys: + // + // * clientID—The identifier of the client OAuth 2.0 authentication application + // created in Box. + // + // * clientSecret—A set of characters known only to the OAuth 2.0 authentication + // application created in Box. + // + // * publicKeyId—The identifier of the public key contained within an identity + // certificate. + // + // * privateKey—A set of characters that make up an encryption key. + // + // * passphrase—A set of characters that act like a password. + // + // You create an application in Box to generate the keys or credentials required + // for the secret. For more information, see Authentication for a Box data source + // (https://docs.aws.amazon.com/kendra/latest/dg/data-source-box.html#box-authentication). + // + // SecretArn is a required field + SecretArn *string `min:"1" type:"string" required:"true"` + + // A list of DataSourceToIndexFieldMapping objects that map attributes or field + // names of Box tasks to Amazon Kendra index field names. To create custom fields, + // use the UpdateIndex API before you map to Box fields. For more information, + // see Mapping data source fields (https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html). + // The Box field names must exist in your Box custom metadata. + TaskFieldMappings []*DataSourceToIndexFieldMapping `min:"1" type:"list"` + + // TRUE to use the Slack change log to determine which documents require updating + // in the index. Depending on the data source change log's size, it may take + // longer for Amazon Kendra to use the change log than to scan all of your documents. + UseChangeLog *bool `type:"boolean"` + + // Configuration information for an Amazon VPC to connect to your Box. For more + // information, see Configuring a VPC (https://docs.aws.amazon.com/endra/latest/dg/vpc-configuration.html). + VpcConfiguration *DataSourceVpcConfiguration `type:"structure"` + + // A list of DataSourceToIndexFieldMapping objects that map attributes or field + // names of Box web links to Amazon Kendra index field names. To create custom + // fields, use the UpdateIndex API before you map to Box fields. For more information, + // see Mapping data source fields (https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html). + // The Box field names must exist in your Box custom metadata. + WebLinkFieldMappings []*DataSourceToIndexFieldMapping `min:"1" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BoxConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BoxConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BoxConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BoxConfiguration"} + if s.CommentFieldMappings != nil && len(s.CommentFieldMappings) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CommentFieldMappings", 1)) + } + if s.EnterpriseId == nil { + invalidParams.Add(request.NewErrParamRequired("EnterpriseId")) + } + if s.EnterpriseId != nil && len(*s.EnterpriseId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EnterpriseId", 1)) + } + if s.FileFieldMappings != nil && len(s.FileFieldMappings) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FileFieldMappings", 1)) + } + if s.SecretArn == nil { + invalidParams.Add(request.NewErrParamRequired("SecretArn")) + } + if s.SecretArn != nil && len(*s.SecretArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SecretArn", 1)) + } + if s.TaskFieldMappings != nil && len(s.TaskFieldMappings) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TaskFieldMappings", 1)) + } + if s.WebLinkFieldMappings != nil && len(s.WebLinkFieldMappings) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WebLinkFieldMappings", 1)) + } + if s.CommentFieldMappings != nil { + for i, v := range s.CommentFieldMappings { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CommentFieldMappings", i), err.(request.ErrInvalidParams)) + } + } + } + if s.FileFieldMappings != nil { + for i, v := range s.FileFieldMappings { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "FileFieldMappings", i), err.(request.ErrInvalidParams)) + } + } + } + if s.TaskFieldMappings != nil { + for i, v := range s.TaskFieldMappings { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TaskFieldMappings", i), err.(request.ErrInvalidParams)) + } + } + } + if s.VpcConfiguration != nil { + if err := s.VpcConfiguration.Validate(); err != nil { + invalidParams.AddNested("VpcConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.WebLinkFieldMappings != nil { + for i, v := range s.WebLinkFieldMappings { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "WebLinkFieldMappings", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCommentFieldMappings sets the CommentFieldMappings field's value. +func (s *BoxConfiguration) SetCommentFieldMappings(v []*DataSourceToIndexFieldMapping) *BoxConfiguration { + s.CommentFieldMappings = v + return s +} + +// SetCrawlComments sets the CrawlComments field's value. +func (s *BoxConfiguration) SetCrawlComments(v bool) *BoxConfiguration { + s.CrawlComments = &v + return s +} + +// SetCrawlTasks sets the CrawlTasks field's value. +func (s *BoxConfiguration) SetCrawlTasks(v bool) *BoxConfiguration { + s.CrawlTasks = &v + return s +} + +// SetCrawlWebLinks sets the CrawlWebLinks field's value. +func (s *BoxConfiguration) SetCrawlWebLinks(v bool) *BoxConfiguration { + s.CrawlWebLinks = &v + return s +} + +// SetEnterpriseId sets the EnterpriseId field's value. +func (s *BoxConfiguration) SetEnterpriseId(v string) *BoxConfiguration { + s.EnterpriseId = &v + return s +} + +// SetExclusionPatterns sets the ExclusionPatterns field's value. +func (s *BoxConfiguration) SetExclusionPatterns(v []*string) *BoxConfiguration { + s.ExclusionPatterns = v + return s +} + +// SetFileFieldMappings sets the FileFieldMappings field's value. +func (s *BoxConfiguration) SetFileFieldMappings(v []*DataSourceToIndexFieldMapping) *BoxConfiguration { + s.FileFieldMappings = v + return s +} + +// SetInclusionPatterns sets the InclusionPatterns field's value. +func (s *BoxConfiguration) SetInclusionPatterns(v []*string) *BoxConfiguration { + s.InclusionPatterns = v + return s +} + +// SetSecretArn sets the SecretArn field's value. +func (s *BoxConfiguration) SetSecretArn(v string) *BoxConfiguration { + s.SecretArn = &v + return s +} + +// SetTaskFieldMappings sets the TaskFieldMappings field's value. +func (s *BoxConfiguration) SetTaskFieldMappings(v []*DataSourceToIndexFieldMapping) *BoxConfiguration { + s.TaskFieldMappings = v + return s +} + +// SetUseChangeLog sets the UseChangeLog field's value. +func (s *BoxConfiguration) SetUseChangeLog(v bool) *BoxConfiguration { + s.UseChangeLog = &v + return s +} + +// SetVpcConfiguration sets the VpcConfiguration field's value. +func (s *BoxConfiguration) SetVpcConfiguration(v *DataSourceVpcConfiguration) *BoxConfiguration { + s.VpcConfiguration = v + return s +} + +// SetWebLinkFieldMappings sets the WebLinkFieldMappings field's value. +func (s *BoxConfiguration) SetWebLinkFieldMappings(v []*DataSourceToIndexFieldMapping) *BoxConfiguration { + s.WebLinkFieldMappings = v + return s +} + +// Specifies additional capacity units configured for your Enterprise Edition +// index. You can add and remove capacity units to fit your usage requirements. type CapacityUnitsConfiguration struct { _ struct{} `type:"structure"` @@ -8955,16 +9228,16 @@ type CreateIndexInput struct { // Name is a required field Name *string `min:"1" type:"string" required:"true"` - // An Identity and Access Management(IAM) role that gives Amazon Kendra permissions + // An Identity and Access Management (IAM) role that gives Amazon Kendra permissions // to access your Amazon CloudWatch logs and metrics. This is also the role - // used when you use the BatchPutDocument API to index documents from an Amazon - // S3 bucket. + // you use when you call the BatchPutDocument API to index documents from an + // Amazon S3 bucket. // // RoleArn is a required field RoleArn *string `type:"string" required:"true"` - // The identifier of the KMScustomer managed key (CMK) to use to encrypt data - // indexed by Amazon Kendra. Amazon Kendra doesn't support asymmetric CMKs. + // The identifier of the KMS customer managed key (CMK) that's used to encrypt + // data indexed by Amazon Kendra. Amazon Kendra doesn't support asymmetric CMKs. ServerSideEncryptionConfiguration *ServerSideEncryptionConfiguration `type:"structure"` // A list of key-value pairs that identify the index. You can use the tags to @@ -9629,6 +9902,9 @@ func (s *CustomDocumentEnrichmentConfiguration) SetRoleArn(v string) *CustomDocu type DataSourceConfiguration struct { _ struct{} `type:"structure"` + // Provides the configuration information to connect to Box as your data source. + BoxConfiguration *BoxConfiguration `type:"structure"` + // Provides the configuration information to connect to Confluence as your data // source. ConfluenceConfiguration *ConfluenceConfiguration `type:"structure"` @@ -9697,6 +9973,11 @@ func (s DataSourceConfiguration) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *DataSourceConfiguration) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DataSourceConfiguration"} + if s.BoxConfiguration != nil { + if err := s.BoxConfiguration.Validate(); err != nil { + invalidParams.AddNested("BoxConfiguration", err.(request.ErrInvalidParams)) + } + } if s.ConfluenceConfiguration != nil { if err := s.ConfluenceConfiguration.Validate(); err != nil { invalidParams.AddNested("ConfluenceConfiguration", err.(request.ErrInvalidParams)) @@ -9764,6 +10045,12 @@ func (s *DataSourceConfiguration) Validate() error { return nil } +// SetBoxConfiguration sets the BoxConfiguration field's value. +func (s *DataSourceConfiguration) SetBoxConfiguration(v *BoxConfiguration) *DataSourceConfiguration { + s.BoxConfiguration = v + return s +} + // SetConfluenceConfiguration sets the ConfluenceConfiguration field's value. func (s *DataSourceConfiguration) SetConfluenceConfiguration(v *ConfluenceConfiguration) *DataSourceConfiguration { s.ConfluenceConfiguration = v @@ -11791,7 +12078,7 @@ func (s *DescribeFaqOutput) SetUpdatedAt(v time.Time) *DescribeFaqOutput { type DescribeIndexInput struct { _ struct{} `type:"structure"` - // The name of the index to describe. + // The identifier of the index to describe. // // Id is a required field Id *string `min:"36" type:"string" required:"true"` @@ -11840,16 +12127,17 @@ func (s *DescribeIndexInput) SetId(v string) *DescribeIndexInput { type DescribeIndexOutput struct { _ struct{} `type:"structure"` - // For Enterprise edition indexes, you can choose to use additional capacity + // For Enterprise Edition indexes, you can choose to use additional capacity // to meet the needs of your application. This contains the capacity units used - // for the index. A 0 for the query capacity or the storage capacity indicates - // that the index is using the default capacity for the index. + // for the index. A query or document storage capacity of zero indicates that + // the index is using the default capacity. For more information on the default + // capacity for an index and adjusting this, see Adjusting capacity (https://docs.aws.amazon.com/kendra/latest/dg/adjusting-capacity.html). CapacityUnits *CapacityUnitsConfiguration `type:"structure"` // The Unix datetime that the index was created. CreatedAt *time.Time `type:"timestamp"` - // The description of the index. + // The description for the index. Description *string `type:"string"` // Configuration settings for any metadata applied to the documents in the index. @@ -11859,11 +12147,11 @@ type DescribeIndexOutput struct { // you create the index. Edition *string `type:"string" enum:"IndexEdition"` - // When th eStatus field value is FAILED, the ErrorMessage field contains a + // When the Status field value is FAILED, the ErrorMessage field contains a // message that explains why. ErrorMessage *string `min:"1" type:"string"` - // The name of the index. + // The identifier of the index. Id *string `min:"36" type:"string"` // Provides information about the number of FAQ questions and answers and the @@ -11877,8 +12165,8 @@ type DescribeIndexOutput struct { // to write to your Amazon Cloudwatch logs. RoleArn *string `type:"string"` - // The identifier of the KMScustomer master key (CMK) used to encrypt your data. - // Amazon Kendra doesn't support asymmetric CMKs. + // The identifier of the KMScustomer master key (CMK) that is used to encrypt + // your data. Amazon Kendra doesn't support asymmetric CMKs. ServerSideEncryptionConfiguration *ServerSideEncryptionConfiguration `type:"structure"` // The current status of the index. When the value is ACTIVE, the index is ready @@ -15660,7 +15948,7 @@ type IndexConfigurationSummary struct { // are using APIs such as Query, DescribeIndex, UpdateIndex, and DeleteIndex. Id *string `min:"36" type:"string"` - // The name of the index. + // The identifier of the index. Name *string `min:"1" type:"string"` // The current status of the index. When the status is ACTIVE, the index is @@ -22996,12 +23284,12 @@ func (s UpdateExperienceOutput) GoString() string { type UpdateIndexInput struct { _ struct{} `type:"structure"` - // Sets the number of additional storage and query capacity units that should - // be used by the index. You can change the capacity of the index up to 5 times - // per day. + // Sets the number of additional document storage and query capacity units that + // should be used by the index. You can change the capacity of the index up + // to 5 times per day, or make 5 API calls. // // If you are using extra storage units, you can't reduce the storage capacity - // below that required to meet the storage needs for your index. + // below what is required to meet the storage needs for your index. CapacityUnits *CapacityUnitsConfiguration `type:"structure"` // A new description for the index. @@ -24810,6 +25098,9 @@ const ( // DataSourceTypeSlack is a DataSourceType enum value DataSourceTypeSlack = "SLACK" + + // DataSourceTypeBox is a DataSourceType enum value + DataSourceTypeBox = "BOX" ) // DataSourceType_Values returns all elements of the DataSourceType enum @@ -24828,6 +25119,7 @@ func DataSourceType_Values() []string { DataSourceTypeWorkdocs, DataSourceTypeFsx, DataSourceTypeSlack, + DataSourceTypeBox, } } diff --git a/service/lambda/api.go b/service/lambda/api.go index 922cb8f73f2..03cd1eb543d 100644 --- a/service/lambda/api.go +++ b/service/lambda/api.go @@ -722,6 +722,99 @@ func (c *Lambda) CreateFunctionWithContext(ctx aws.Context, input *CreateFunctio return out, req.Send() } +const opCreateFunctionUrlConfig = "CreateFunctionUrlConfig" + +// CreateFunctionUrlConfigRequest generates a "aws/request.Request" representing the +// client's request for the CreateFunctionUrlConfig operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateFunctionUrlConfig for more information on using the CreateFunctionUrlConfig +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateFunctionUrlConfigRequest method. +// req, resp := client.CreateFunctionUrlConfigRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunctionUrlConfig +func (c *Lambda) CreateFunctionUrlConfigRequest(input *CreateFunctionUrlConfigInput) (req *request.Request, output *CreateFunctionUrlConfigOutput) { + op := &request.Operation{ + Name: opCreateFunctionUrlConfig, + HTTPMethod: "POST", + HTTPPath: "/2021-10-31/functions/{FunctionName}/url", + } + + if input == nil { + input = &CreateFunctionUrlConfigInput{} + } + + output = &CreateFunctionUrlConfigOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateFunctionUrlConfig API operation for AWS Lambda. +// +// Creates a Lambda function URL with the specified configuration parameters. +// A function URL is a dedicated HTTP(S) endpoint that you can use to invoke +// your function. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Lambda's +// API operation CreateFunctionUrlConfig for usage and error information. +// +// Returned Error Types: +// * ResourceConflictException +// The resource already exists, or another operation is in progress. +// +// * ResourceNotFoundException +// The resource specified in the request does not exist. +// +// * InvalidParameterValueException +// One of the parameters in the request is invalid. +// +// * ServiceException +// The Lambda service encountered an internal error. +// +// * TooManyRequestsException +// The request throughput limit was exceeded. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunctionUrlConfig +func (c *Lambda) CreateFunctionUrlConfig(input *CreateFunctionUrlConfigInput) (*CreateFunctionUrlConfigOutput, error) { + req, out := c.CreateFunctionUrlConfigRequest(input) + return out, req.Send() +} + +// CreateFunctionUrlConfigWithContext is the same as CreateFunctionUrlConfig with the addition of +// the ability to pass a context and additional request options. +// +// See CreateFunctionUrlConfig for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lambda) CreateFunctionUrlConfigWithContext(ctx aws.Context, input *CreateFunctionUrlConfigInput, opts ...request.Option) (*CreateFunctionUrlConfigOutput, error) { + req, out := c.CreateFunctionUrlConfigRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteAlias = "DeleteAlias" // DeleteAliasRequest generates a "aws/request.Request" representing the @@ -1378,6 +1471,96 @@ func (c *Lambda) DeleteFunctionEventInvokeConfigWithContext(ctx aws.Context, inp return out, req.Send() } +const opDeleteFunctionUrlConfig = "DeleteFunctionUrlConfig" + +// DeleteFunctionUrlConfigRequest generates a "aws/request.Request" representing the +// client's request for the DeleteFunctionUrlConfig operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteFunctionUrlConfig for more information on using the DeleteFunctionUrlConfig +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteFunctionUrlConfigRequest method. +// req, resp := client.DeleteFunctionUrlConfigRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunctionUrlConfig +func (c *Lambda) DeleteFunctionUrlConfigRequest(input *DeleteFunctionUrlConfigInput) (req *request.Request, output *DeleteFunctionUrlConfigOutput) { + op := &request.Operation{ + Name: opDeleteFunctionUrlConfig, + HTTPMethod: "DELETE", + HTTPPath: "/2021-10-31/functions/{FunctionName}/url", + } + + if input == nil { + input = &DeleteFunctionUrlConfigInput{} + } + + output = &DeleteFunctionUrlConfigOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteFunctionUrlConfig API operation for AWS Lambda. +// +// Deletes a Lambda function URL. When you delete a function URL, you can't +// recover it. Creating a new function URL results in a different URL address. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Lambda's +// API operation DeleteFunctionUrlConfig for usage and error information. +// +// Returned Error Types: +// * ResourceConflictException +// The resource already exists, or another operation is in progress. +// +// * ResourceNotFoundException +// The resource specified in the request does not exist. +// +// * ServiceException +// The Lambda service encountered an internal error. +// +// * TooManyRequestsException +// The request throughput limit was exceeded. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunctionUrlConfig +func (c *Lambda) DeleteFunctionUrlConfig(input *DeleteFunctionUrlConfigInput) (*DeleteFunctionUrlConfigOutput, error) { + req, out := c.DeleteFunctionUrlConfigRequest(input) + return out, req.Send() +} + +// DeleteFunctionUrlConfigWithContext is the same as DeleteFunctionUrlConfig with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteFunctionUrlConfig for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lambda) DeleteFunctionUrlConfigWithContext(ctx aws.Context, input *DeleteFunctionUrlConfigInput, opts ...request.Option) (*DeleteFunctionUrlConfigOutput, error) { + req, out := c.DeleteFunctionUrlConfigRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteLayerVersion = "DeleteLayerVersion" // DeleteLayerVersionRequest generates a "aws/request.Request" representing the @@ -2352,6 +2535,94 @@ func (c *Lambda) GetFunctionEventInvokeConfigWithContext(ctx aws.Context, input return out, req.Send() } +const opGetFunctionUrlConfig = "GetFunctionUrlConfig" + +// GetFunctionUrlConfigRequest generates a "aws/request.Request" representing the +// client's request for the GetFunctionUrlConfig operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetFunctionUrlConfig for more information on using the GetFunctionUrlConfig +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetFunctionUrlConfigRequest method. +// req, resp := client.GetFunctionUrlConfigRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionUrlConfig +func (c *Lambda) GetFunctionUrlConfigRequest(input *GetFunctionUrlConfigInput) (req *request.Request, output *GetFunctionUrlConfigOutput) { + op := &request.Operation{ + Name: opGetFunctionUrlConfig, + HTTPMethod: "GET", + HTTPPath: "/2021-10-31/functions/{FunctionName}/url", + } + + if input == nil { + input = &GetFunctionUrlConfigInput{} + } + + output = &GetFunctionUrlConfigOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetFunctionUrlConfig API operation for AWS Lambda. +// +// Returns details about a Lambda function URL. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Lambda's +// API operation GetFunctionUrlConfig for usage and error information. +// +// Returned Error Types: +// * InvalidParameterValueException +// One of the parameters in the request is invalid. +// +// * ServiceException +// The Lambda service encountered an internal error. +// +// * ResourceNotFoundException +// The resource specified in the request does not exist. +// +// * TooManyRequestsException +// The request throughput limit was exceeded. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionUrlConfig +func (c *Lambda) GetFunctionUrlConfig(input *GetFunctionUrlConfigInput) (*GetFunctionUrlConfigOutput, error) { + req, out := c.GetFunctionUrlConfigRequest(input) + return out, req.Send() +} + +// GetFunctionUrlConfigWithContext is the same as GetFunctionUrlConfig with the addition of +// the ability to pass a context and additional request options. +// +// See GetFunctionUrlConfig for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lambda) GetFunctionUrlConfigWithContext(ctx aws.Context, input *GetFunctionUrlConfigInput, opts ...request.Option) (*GetFunctionUrlConfigOutput, error) { + req, out := c.GetFunctionUrlConfigRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opGetLayerVersion = "GetLayerVersion" // GetLayerVersionRequest generates a "aws/request.Request" representing the @@ -3618,65 +3889,211 @@ func (c *Lambda) ListFunctionEventInvokeConfigsRequest(input *ListFunctionEventI // * ServiceException // The Lambda service encountered an internal error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctionEventInvokeConfigs -func (c *Lambda) ListFunctionEventInvokeConfigs(input *ListFunctionEventInvokeConfigsInput) (*ListFunctionEventInvokeConfigsOutput, error) { - req, out := c.ListFunctionEventInvokeConfigsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctionEventInvokeConfigs +func (c *Lambda) ListFunctionEventInvokeConfigs(input *ListFunctionEventInvokeConfigsInput) (*ListFunctionEventInvokeConfigsOutput, error) { + req, out := c.ListFunctionEventInvokeConfigsRequest(input) + return out, req.Send() +} + +// ListFunctionEventInvokeConfigsWithContext is the same as ListFunctionEventInvokeConfigs with the addition of +// the ability to pass a context and additional request options. +// +// See ListFunctionEventInvokeConfigs for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lambda) ListFunctionEventInvokeConfigsWithContext(ctx aws.Context, input *ListFunctionEventInvokeConfigsInput, opts ...request.Option) (*ListFunctionEventInvokeConfigsOutput, error) { + req, out := c.ListFunctionEventInvokeConfigsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListFunctionEventInvokeConfigsPages iterates over the pages of a ListFunctionEventInvokeConfigs operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListFunctionEventInvokeConfigs method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListFunctionEventInvokeConfigs operation. +// pageNum := 0 +// err := client.ListFunctionEventInvokeConfigsPages(params, +// func(page *lambda.ListFunctionEventInvokeConfigsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Lambda) ListFunctionEventInvokeConfigsPages(input *ListFunctionEventInvokeConfigsInput, fn func(*ListFunctionEventInvokeConfigsOutput, bool) bool) error { + return c.ListFunctionEventInvokeConfigsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListFunctionEventInvokeConfigsPagesWithContext same as ListFunctionEventInvokeConfigsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lambda) ListFunctionEventInvokeConfigsPagesWithContext(ctx aws.Context, input *ListFunctionEventInvokeConfigsInput, fn func(*ListFunctionEventInvokeConfigsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListFunctionEventInvokeConfigsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListFunctionEventInvokeConfigsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListFunctionEventInvokeConfigsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListFunctionUrlConfigs = "ListFunctionUrlConfigs" + +// ListFunctionUrlConfigsRequest generates a "aws/request.Request" representing the +// client's request for the ListFunctionUrlConfigs operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListFunctionUrlConfigs for more information on using the ListFunctionUrlConfigs +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListFunctionUrlConfigsRequest method. +// req, resp := client.ListFunctionUrlConfigsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctionUrlConfigs +func (c *Lambda) ListFunctionUrlConfigsRequest(input *ListFunctionUrlConfigsInput) (req *request.Request, output *ListFunctionUrlConfigsOutput) { + op := &request.Operation{ + Name: opListFunctionUrlConfigs, + HTTPMethod: "GET", + HTTPPath: "/2021-10-31/functions/{FunctionName}/urls", + Paginator: &request.Paginator{ + InputTokens: []string{"Marker"}, + OutputTokens: []string{"NextMarker"}, + LimitToken: "MaxItems", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListFunctionUrlConfigsInput{} + } + + output = &ListFunctionUrlConfigsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListFunctionUrlConfigs API operation for AWS Lambda. +// +// Returns a list of Lambda function URLs for the specified function. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Lambda's +// API operation ListFunctionUrlConfigs for usage and error information. +// +// Returned Error Types: +// * InvalidParameterValueException +// One of the parameters in the request is invalid. +// +// * ServiceException +// The Lambda service encountered an internal error. +// +// * ResourceNotFoundException +// The resource specified in the request does not exist. +// +// * TooManyRequestsException +// The request throughput limit was exceeded. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctionUrlConfigs +func (c *Lambda) ListFunctionUrlConfigs(input *ListFunctionUrlConfigsInput) (*ListFunctionUrlConfigsOutput, error) { + req, out := c.ListFunctionUrlConfigsRequest(input) return out, req.Send() } -// ListFunctionEventInvokeConfigsWithContext is the same as ListFunctionEventInvokeConfigs with the addition of +// ListFunctionUrlConfigsWithContext is the same as ListFunctionUrlConfigs with the addition of // the ability to pass a context and additional request options. // -// See ListFunctionEventInvokeConfigs for details on how to use this API operation. +// See ListFunctionUrlConfigs for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lambda) ListFunctionEventInvokeConfigsWithContext(ctx aws.Context, input *ListFunctionEventInvokeConfigsInput, opts ...request.Option) (*ListFunctionEventInvokeConfigsOutput, error) { - req, out := c.ListFunctionEventInvokeConfigsRequest(input) +func (c *Lambda) ListFunctionUrlConfigsWithContext(ctx aws.Context, input *ListFunctionUrlConfigsInput, opts ...request.Option) (*ListFunctionUrlConfigsOutput, error) { + req, out := c.ListFunctionUrlConfigsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListFunctionEventInvokeConfigsPages iterates over the pages of a ListFunctionEventInvokeConfigs operation, +// ListFunctionUrlConfigsPages iterates over the pages of a ListFunctionUrlConfigs operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListFunctionEventInvokeConfigs method for more information on how to use this operation. +// See ListFunctionUrlConfigs method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // -// // Example iterating over at most 3 pages of a ListFunctionEventInvokeConfigs operation. +// // Example iterating over at most 3 pages of a ListFunctionUrlConfigs operation. // pageNum := 0 -// err := client.ListFunctionEventInvokeConfigsPages(params, -// func(page *lambda.ListFunctionEventInvokeConfigsOutput, lastPage bool) bool { +// err := client.ListFunctionUrlConfigsPages(params, +// func(page *lambda.ListFunctionUrlConfigsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *Lambda) ListFunctionEventInvokeConfigsPages(input *ListFunctionEventInvokeConfigsInput, fn func(*ListFunctionEventInvokeConfigsOutput, bool) bool) error { - return c.ListFunctionEventInvokeConfigsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *Lambda) ListFunctionUrlConfigsPages(input *ListFunctionUrlConfigsInput, fn func(*ListFunctionUrlConfigsOutput, bool) bool) error { + return c.ListFunctionUrlConfigsPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListFunctionEventInvokeConfigsPagesWithContext same as ListFunctionEventInvokeConfigsPages except +// ListFunctionUrlConfigsPagesWithContext same as ListFunctionUrlConfigsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lambda) ListFunctionEventInvokeConfigsPagesWithContext(ctx aws.Context, input *ListFunctionEventInvokeConfigsInput, fn func(*ListFunctionEventInvokeConfigsOutput, bool) bool, opts ...request.Option) error { +func (c *Lambda) ListFunctionUrlConfigsPagesWithContext(ctx aws.Context, input *ListFunctionUrlConfigsInput, fn func(*ListFunctionUrlConfigsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListFunctionEventInvokeConfigsInput + var inCpy *ListFunctionUrlConfigsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListFunctionEventInvokeConfigsRequest(inCpy) + req, _ := c.ListFunctionUrlConfigsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -3684,7 +4101,7 @@ func (c *Lambda) ListFunctionEventInvokeConfigsPagesWithContext(ctx aws.Context, } for p.Next() { - if !fn(p.Page().(*ListFunctionEventInvokeConfigsOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListFunctionUrlConfigsOutput), !p.HasNextPage()) { break } } @@ -6326,6 +6743,97 @@ func (c *Lambda) UpdateFunctionEventInvokeConfigWithContext(ctx aws.Context, inp return out, req.Send() } +const opUpdateFunctionUrlConfig = "UpdateFunctionUrlConfig" + +// UpdateFunctionUrlConfigRequest generates a "aws/request.Request" representing the +// client's request for the UpdateFunctionUrlConfig operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateFunctionUrlConfig for more information on using the UpdateFunctionUrlConfig +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateFunctionUrlConfigRequest method. +// req, resp := client.UpdateFunctionUrlConfigRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionUrlConfig +func (c *Lambda) UpdateFunctionUrlConfigRequest(input *UpdateFunctionUrlConfigInput) (req *request.Request, output *UpdateFunctionUrlConfigOutput) { + op := &request.Operation{ + Name: opUpdateFunctionUrlConfig, + HTTPMethod: "PUT", + HTTPPath: "/2021-10-31/functions/{FunctionName}/url", + } + + if input == nil { + input = &UpdateFunctionUrlConfigInput{} + } + + output = &UpdateFunctionUrlConfigOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateFunctionUrlConfig API operation for AWS Lambda. +// +// Updates the configuration for a Lambda function URL. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Lambda's +// API operation UpdateFunctionUrlConfig for usage and error information. +// +// Returned Error Types: +// * ResourceConflictException +// The resource already exists, or another operation is in progress. +// +// * ResourceNotFoundException +// The resource specified in the request does not exist. +// +// * InvalidParameterValueException +// One of the parameters in the request is invalid. +// +// * ServiceException +// The Lambda service encountered an internal error. +// +// * TooManyRequestsException +// The request throughput limit was exceeded. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionUrlConfig +func (c *Lambda) UpdateFunctionUrlConfig(input *UpdateFunctionUrlConfigInput) (*UpdateFunctionUrlConfigOutput, error) { + req, out := c.UpdateFunctionUrlConfigRequest(input) + return out, req.Send() +} + +// UpdateFunctionUrlConfigWithContext is the same as UpdateFunctionUrlConfig with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateFunctionUrlConfig for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lambda) UpdateFunctionUrlConfigWithContext(ctx aws.Context, input *UpdateFunctionUrlConfigInput, opts ...request.Option) (*UpdateFunctionUrlConfigOutput, error) { + req, out := c.UpdateFunctionUrlConfigRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + // Limits that are related to concurrency and storage. All file and storage // sizes are in bytes. type AccountLimit struct { @@ -6642,6 +7150,12 @@ type AddPermissionInput struct { // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` + // The type of authentication that your function URL uses. Set to AWS_IAM if + // you want to restrict access to authenticated IAM users only. Set to NONE + // if you want to bypass IAM authentication to create a public endpoint. For + // more information, see Security and auth model for Lambda function URLs (https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html). + FunctionUrlAuthType *string `type:"string" enum:"FunctionUrlAuthType"` + // The Amazon Web Services service or account that invokes the function. If // you specify a service, use SourceArn or SourceAccount to limit who can invoke // the function through that service. @@ -6752,6 +7266,12 @@ func (s *AddPermissionInput) SetFunctionName(v string) *AddPermissionInput { return s } +// SetFunctionUrlAuthType sets the FunctionUrlAuthType field's value. +func (s *AddPermissionInput) SetFunctionUrlAuthType(v string) *AddPermissionInput { + s.FunctionUrlAuthType = &v + return s +} + // SetPrincipal sets the Principal field's value. func (s *AddPermissionInput) SetPrincipal(v string) *AddPermissionInput { s.Principal = &v @@ -7315,6 +7835,97 @@ func (s *CodeVerificationFailedException) RequestID() string { return s.RespMetadata.RequestID } +// The cross-origin resource sharing (CORS) (https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) +// settings for your Lambda function URL. Use CORS to grant access to your function +// URL from any origin. You can also use CORS to control access for specific +// HTTP headers and methods in requests to your function URL. +type Cors struct { + _ struct{} `type:"structure"` + + // Whether to allow cookies or other credentials in requests to your function + // URL. The default is false. + AllowCredentials *bool `type:"boolean"` + + // The HTTP headers that origins can include in requests to your function URL. + // For example: Date, Keep-Alive, X-Custom-Header. + AllowHeaders []*string `type:"list"` + + // The HTTP methods that are allowed when calling your function URL. For example: + // GET, POST, DELETE, or the wildcard character (*). + AllowMethods []*string `type:"list"` + + // The origins that can access your function URL. You can list any number of + // specific origins, separated by a comma. For example: https://www.example.com, + // http://localhost:60905. + // + // Alternatively, you can grant access to all origins using the wildcard character + // (*). + AllowOrigins []*string `type:"list"` + + // The HTTP headers in your function response that you want to expose to origins + // that call your function URL. For example: Date, Keep-Alive, X-Custom-Header. + ExposeHeaders []*string `type:"list"` + + // The maximum amount of time, in seconds, that web browsers can cache results + // of a preflight request. By default, this is set to 0, which means that the + // browser doesn't cache results. + MaxAge *int64 `type:"integer"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Cors) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Cors) GoString() string { + return s.String() +} + +// SetAllowCredentials sets the AllowCredentials field's value. +func (s *Cors) SetAllowCredentials(v bool) *Cors { + s.AllowCredentials = &v + return s +} + +// SetAllowHeaders sets the AllowHeaders field's value. +func (s *Cors) SetAllowHeaders(v []*string) *Cors { + s.AllowHeaders = v + return s +} + +// SetAllowMethods sets the AllowMethods field's value. +func (s *Cors) SetAllowMethods(v []*string) *Cors { + s.AllowMethods = v + return s +} + +// SetAllowOrigins sets the AllowOrigins field's value. +func (s *Cors) SetAllowOrigins(v []*string) *Cors { + s.AllowOrigins = v + return s +} + +// SetExposeHeaders sets the ExposeHeaders field's value. +func (s *Cors) SetExposeHeaders(v []*string) *Cors { + s.ExposeHeaders = v + return s +} + +// SetMaxAge sets the MaxAge field's value. +func (s *Cors) SetMaxAge(v int64) *Cors { + s.MaxAge = &v + return s +} + type CreateAliasInput struct { _ struct{} `type:"structure"` @@ -8148,6 +8759,185 @@ func (s *CreateFunctionInput) SetVpcConfig(v *VpcConfig) *CreateFunctionInput { return s } +type CreateFunctionUrlConfigInput struct { + _ struct{} `type:"structure"` + + // The type of authentication that your function URL uses. Set to AWS_IAM if + // you want to restrict access to authenticated IAM users only. Set to NONE + // if you want to bypass IAM authentication to create a public endpoint. For + // more information, see Security and auth model for Lambda function URLs (https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html). + // + // AuthType is a required field + AuthType *string `type:"string" required:"true" enum:"FunctionUrlAuthType"` + + // The cross-origin resource sharing (CORS) (https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) + // settings for your function URL. + Cors *Cors `type:"structure"` + + // The name of the Lambda function. + // + // Name formats + // + // * Function name - my-function. + // + // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. + // + // * Partial ARN - 123456789012:function:my-function. + // + // The length constraint applies only to the full ARN. If you specify only the + // function name, it is limited to 64 characters in length. + // + // FunctionName is a required field + FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` + + // The alias name. + Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateFunctionUrlConfigInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateFunctionUrlConfigInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateFunctionUrlConfigInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateFunctionUrlConfigInput"} + if s.AuthType == nil { + invalidParams.Add(request.NewErrParamRequired("AuthType")) + } + if s.FunctionName == nil { + invalidParams.Add(request.NewErrParamRequired("FunctionName")) + } + if s.FunctionName != nil && len(*s.FunctionName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FunctionName", 1)) + } + if s.Qualifier != nil && len(*s.Qualifier) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Qualifier", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAuthType sets the AuthType field's value. +func (s *CreateFunctionUrlConfigInput) SetAuthType(v string) *CreateFunctionUrlConfigInput { + s.AuthType = &v + return s +} + +// SetCors sets the Cors field's value. +func (s *CreateFunctionUrlConfigInput) SetCors(v *Cors) *CreateFunctionUrlConfigInput { + s.Cors = v + return s +} + +// SetFunctionName sets the FunctionName field's value. +func (s *CreateFunctionUrlConfigInput) SetFunctionName(v string) *CreateFunctionUrlConfigInput { + s.FunctionName = &v + return s +} + +// SetQualifier sets the Qualifier field's value. +func (s *CreateFunctionUrlConfigInput) SetQualifier(v string) *CreateFunctionUrlConfigInput { + s.Qualifier = &v + return s +} + +type CreateFunctionUrlConfigOutput struct { + _ struct{} `type:"structure"` + + // The type of authentication that your function URL uses. Set to AWS_IAM if + // you want to restrict access to authenticated IAM users only. Set to NONE + // if you want to bypass IAM authentication to create a public endpoint. For + // more information, see Security and auth model for Lambda function URLs (https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html). + // + // AuthType is a required field + AuthType *string `type:"string" required:"true" enum:"FunctionUrlAuthType"` + + // The cross-origin resource sharing (CORS) (https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) + // settings for your function URL. + Cors *Cors `type:"structure"` + + // When the function URL was created, in ISO-8601 format (https://www.w3.org/TR/NOTE-datetime) + // (YYYY-MM-DDThh:mm:ss.sTZD). + // + // CreationTime is a required field + CreationTime *string `type:"string" required:"true"` + + // The Amazon Resource Name (ARN) of your function. + // + // FunctionArn is a required field + FunctionArn *string `type:"string" required:"true"` + + // The HTTP URL endpoint for your function. + // + // FunctionUrl is a required field + FunctionUrl *string `min:"40" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateFunctionUrlConfigOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateFunctionUrlConfigOutput) GoString() string { + return s.String() +} + +// SetAuthType sets the AuthType field's value. +func (s *CreateFunctionUrlConfigOutput) SetAuthType(v string) *CreateFunctionUrlConfigOutput { + s.AuthType = &v + return s +} + +// SetCors sets the Cors field's value. +func (s *CreateFunctionUrlConfigOutput) SetCors(v *Cors) *CreateFunctionUrlConfigOutput { + s.Cors = v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *CreateFunctionUrlConfigOutput) SetCreationTime(v string) *CreateFunctionUrlConfigOutput { + s.CreationTime = &v + return s +} + +// SetFunctionArn sets the FunctionArn field's value. +func (s *CreateFunctionUrlConfigOutput) SetFunctionArn(v string) *CreateFunctionUrlConfigOutput { + s.FunctionArn = &v + return s +} + +// SetFunctionUrl sets the FunctionUrl field's value. +func (s *CreateFunctionUrlConfigOutput) SetFunctionUrl(v string) *CreateFunctionUrlConfigOutput { + s.FunctionUrl = &v + return s +} + // The dead-letter queue (https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq) // for failed asynchronous invocations. type DeadLetterConfig struct { @@ -8755,6 +9545,100 @@ func (s DeleteFunctionOutput) GoString() string { return s.String() } +type DeleteFunctionUrlConfigInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The name of the Lambda function. + // + // Name formats + // + // * Function name - my-function. + // + // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. + // + // * Partial ARN - 123456789012:function:my-function. + // + // The length constraint applies only to the full ARN. If you specify only the + // function name, it is limited to 64 characters in length. + // + // FunctionName is a required field + FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` + + // The alias name. + Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteFunctionUrlConfigInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteFunctionUrlConfigInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteFunctionUrlConfigInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteFunctionUrlConfigInput"} + if s.FunctionName == nil { + invalidParams.Add(request.NewErrParamRequired("FunctionName")) + } + if s.FunctionName != nil && len(*s.FunctionName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FunctionName", 1)) + } + if s.Qualifier != nil && len(*s.Qualifier) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Qualifier", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFunctionName sets the FunctionName field's value. +func (s *DeleteFunctionUrlConfigInput) SetFunctionName(v string) *DeleteFunctionUrlConfigInput { + s.FunctionName = &v + return s +} + +// SetQualifier sets the Qualifier field's value. +func (s *DeleteFunctionUrlConfigInput) SetQualifier(v string) *DeleteFunctionUrlConfigInput { + s.Qualifier = &v + return s +} + +type DeleteFunctionUrlConfigOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteFunctionUrlConfigOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteFunctionUrlConfigOutput) GoString() string { + return s.String() +} + type DeleteLayerVersionInput struct { _ struct{} `type:"structure" nopayload:"true"` @@ -10657,6 +11541,99 @@ func (s *FunctionEventInvokeConfig) SetMaximumRetryAttempts(v int64) *FunctionEv return s } +// Details about a Lambda function URL. +type FunctionUrlConfig struct { + _ struct{} `type:"structure"` + + // The type of authentication that your function URL uses. Set to AWS_IAM if + // you want to restrict access to authenticated IAM users only. Set to NONE + // if you want to bypass IAM authentication to create a public endpoint. For + // more information, see Security and auth model for Lambda function URLs (https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html). + // + // AuthType is a required field + AuthType *string `type:"string" required:"true" enum:"FunctionUrlAuthType"` + + // The cross-origin resource sharing (CORS) (https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) + // settings for your function URL. + Cors *Cors `type:"structure"` + + // When the function URL was created, in ISO-8601 format (https://www.w3.org/TR/NOTE-datetime) + // (YYYY-MM-DDThh:mm:ss.sTZD). + // + // CreationTime is a required field + CreationTime *string `type:"string" required:"true"` + + // The Amazon Resource Name (ARN) of your function. + // + // FunctionArn is a required field + FunctionArn *string `type:"string" required:"true"` + + // The HTTP URL endpoint for your function. + // + // FunctionUrl is a required field + FunctionUrl *string `min:"40" type:"string" required:"true"` + + // When the function URL configuration was last updated, in ISO-8601 format + // (https://www.w3.org/TR/NOTE-datetime) (YYYY-MM-DDThh:mm:ss.sTZD). + // + // LastModifiedTime is a required field + LastModifiedTime *string `type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s FunctionUrlConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s FunctionUrlConfig) GoString() string { + return s.String() +} + +// SetAuthType sets the AuthType field's value. +func (s *FunctionUrlConfig) SetAuthType(v string) *FunctionUrlConfig { + s.AuthType = &v + return s +} + +// SetCors sets the Cors field's value. +func (s *FunctionUrlConfig) SetCors(v *Cors) *FunctionUrlConfig { + s.Cors = v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *FunctionUrlConfig) SetCreationTime(v string) *FunctionUrlConfig { + s.CreationTime = &v + return s +} + +// SetFunctionArn sets the FunctionArn field's value. +func (s *FunctionUrlConfig) SetFunctionArn(v string) *FunctionUrlConfig { + s.FunctionArn = &v + return s +} + +// SetFunctionUrl sets the FunctionUrl field's value. +func (s *FunctionUrlConfig) SetFunctionUrl(v string) *FunctionUrlConfig { + s.FunctionUrl = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *FunctionUrlConfig) SetLastModifiedTime(v string) *FunctionUrlConfig { + s.LastModifiedTime = &v + return s +} + type GetAccountSettingsInput struct { _ struct{} `type:"structure" nopayload:"true"` } @@ -11465,27 +12442,191 @@ func (s GetFunctionOutput) GoString() string { return s.String() } -// SetCode sets the Code field's value. -func (s *GetFunctionOutput) SetCode(v *FunctionCodeLocation) *GetFunctionOutput { - s.Code = v +// SetCode sets the Code field's value. +func (s *GetFunctionOutput) SetCode(v *FunctionCodeLocation) *GetFunctionOutput { + s.Code = v + return s +} + +// SetConcurrency sets the Concurrency field's value. +func (s *GetFunctionOutput) SetConcurrency(v *PutFunctionConcurrencyOutput) *GetFunctionOutput { + s.Concurrency = v + return s +} + +// SetConfiguration sets the Configuration field's value. +func (s *GetFunctionOutput) SetConfiguration(v *FunctionConfiguration) *GetFunctionOutput { + s.Configuration = v + return s +} + +// SetTags sets the Tags field's value. +func (s *GetFunctionOutput) SetTags(v map[string]*string) *GetFunctionOutput { + s.Tags = v + return s +} + +type GetFunctionUrlConfigInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The name of the Lambda function. + // + // Name formats + // + // * Function name - my-function. + // + // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. + // + // * Partial ARN - 123456789012:function:my-function. + // + // The length constraint applies only to the full ARN. If you specify only the + // function name, it is limited to 64 characters in length. + // + // FunctionName is a required field + FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` + + // The alias name. + Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetFunctionUrlConfigInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetFunctionUrlConfigInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetFunctionUrlConfigInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetFunctionUrlConfigInput"} + if s.FunctionName == nil { + invalidParams.Add(request.NewErrParamRequired("FunctionName")) + } + if s.FunctionName != nil && len(*s.FunctionName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FunctionName", 1)) + } + if s.Qualifier != nil && len(*s.Qualifier) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Qualifier", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFunctionName sets the FunctionName field's value. +func (s *GetFunctionUrlConfigInput) SetFunctionName(v string) *GetFunctionUrlConfigInput { + s.FunctionName = &v + return s +} + +// SetQualifier sets the Qualifier field's value. +func (s *GetFunctionUrlConfigInput) SetQualifier(v string) *GetFunctionUrlConfigInput { + s.Qualifier = &v + return s +} + +type GetFunctionUrlConfigOutput struct { + _ struct{} `type:"structure"` + + // The type of authentication that your function URL uses. Set to AWS_IAM if + // you want to restrict access to authenticated IAM users only. Set to NONE + // if you want to bypass IAM authentication to create a public endpoint. For + // more information, see Security and auth model for Lambda function URLs (https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html). + // + // AuthType is a required field + AuthType *string `type:"string" required:"true" enum:"FunctionUrlAuthType"` + + // The cross-origin resource sharing (CORS) (https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) + // settings for your function URL. + Cors *Cors `type:"structure"` + + // When the function URL was created, in ISO-8601 format (https://www.w3.org/TR/NOTE-datetime) + // (YYYY-MM-DDThh:mm:ss.sTZD). + // + // CreationTime is a required field + CreationTime *string `type:"string" required:"true"` + + // The Amazon Resource Name (ARN) of your function. + // + // FunctionArn is a required field + FunctionArn *string `type:"string" required:"true"` + + // The HTTP URL endpoint for your function. + // + // FunctionUrl is a required field + FunctionUrl *string `min:"40" type:"string" required:"true"` + + // When the function URL configuration was last updated, in ISO-8601 format + // (https://www.w3.org/TR/NOTE-datetime) (YYYY-MM-DDThh:mm:ss.sTZD). + // + // LastModifiedTime is a required field + LastModifiedTime *string `type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetFunctionUrlConfigOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetFunctionUrlConfigOutput) GoString() string { + return s.String() +} + +// SetAuthType sets the AuthType field's value. +func (s *GetFunctionUrlConfigOutput) SetAuthType(v string) *GetFunctionUrlConfigOutput { + s.AuthType = &v + return s +} + +// SetCors sets the Cors field's value. +func (s *GetFunctionUrlConfigOutput) SetCors(v *Cors) *GetFunctionUrlConfigOutput { + s.Cors = v return s } -// SetConcurrency sets the Concurrency field's value. -func (s *GetFunctionOutput) SetConcurrency(v *PutFunctionConcurrencyOutput) *GetFunctionOutput { - s.Concurrency = v +// SetCreationTime sets the CreationTime field's value. +func (s *GetFunctionUrlConfigOutput) SetCreationTime(v string) *GetFunctionUrlConfigOutput { + s.CreationTime = &v return s } -// SetConfiguration sets the Configuration field's value. -func (s *GetFunctionOutput) SetConfiguration(v *FunctionConfiguration) *GetFunctionOutput { - s.Configuration = v +// SetFunctionArn sets the FunctionArn field's value. +func (s *GetFunctionUrlConfigOutput) SetFunctionArn(v string) *GetFunctionUrlConfigOutput { + s.FunctionArn = &v return s } -// SetTags sets the Tags field's value. -func (s *GetFunctionOutput) SetTags(v map[string]*string) *GetFunctionOutput { - s.Tags = v +// SetFunctionUrl sets the FunctionUrl field's value. +func (s *GetFunctionUrlConfigOutput) SetFunctionUrl(v string) *GetFunctionUrlConfigOutput { + s.FunctionUrl = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *GetFunctionUrlConfigOutput) SetLastModifiedTime(v string) *GetFunctionUrlConfigOutput { + s.LastModifiedTime = &v return s } @@ -14206,6 +15347,132 @@ func (s *ListFunctionEventInvokeConfigsOutput) SetNextMarker(v string) *ListFunc return s } +type ListFunctionUrlConfigsInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The name of the Lambda function. + // + // Name formats + // + // * Function name - my-function. + // + // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. + // + // * Partial ARN - 123456789012:function:my-function. + // + // The length constraint applies only to the full ARN. If you specify only the + // function name, it is limited to 64 characters in length. + // + // FunctionName is a required field + FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` + + // Specify the pagination token that's returned by a previous request to retrieve + // the next page of results. + Marker *string `location:"querystring" locationName:"Marker" type:"string"` + + // The maximum number of function URLs to return in the response. Note that + // ListFunctionUrlConfigs returns a maximum of 50 items in each response, even + // if you set the number higher. + MaxItems *int64 `location:"querystring" locationName:"MaxItems" min:"1" type:"integer"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListFunctionUrlConfigsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListFunctionUrlConfigsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListFunctionUrlConfigsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListFunctionUrlConfigsInput"} + if s.FunctionName == nil { + invalidParams.Add(request.NewErrParamRequired("FunctionName")) + } + if s.FunctionName != nil && len(*s.FunctionName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FunctionName", 1)) + } + if s.MaxItems != nil && *s.MaxItems < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFunctionName sets the FunctionName field's value. +func (s *ListFunctionUrlConfigsInput) SetFunctionName(v string) *ListFunctionUrlConfigsInput { + s.FunctionName = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListFunctionUrlConfigsInput) SetMarker(v string) *ListFunctionUrlConfigsInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListFunctionUrlConfigsInput) SetMaxItems(v int64) *ListFunctionUrlConfigsInput { + s.MaxItems = &v + return s +} + +type ListFunctionUrlConfigsOutput struct { + _ struct{} `type:"structure"` + + // A list of function URL configurations. + // + // FunctionUrlConfigs is a required field + FunctionUrlConfigs []*FunctionUrlConfig `type:"list" required:"true"` + + // The pagination token that's included if more results are available. + NextMarker *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListFunctionUrlConfigsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListFunctionUrlConfigsOutput) GoString() string { + return s.String() +} + +// SetFunctionUrlConfigs sets the FunctionUrlConfigs field's value. +func (s *ListFunctionUrlConfigsOutput) SetFunctionUrlConfigs(v []*FunctionUrlConfig) *ListFunctionUrlConfigsOutput { + s.FunctionUrlConfigs = v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListFunctionUrlConfigsOutput) SetNextMarker(v string) *ListFunctionUrlConfigsOutput { + s.NextMarker = &v + return s +} + type ListFunctionsByCodeSigningConfigInput struct { _ struct{} `type:"structure" nopayload:"true"` @@ -18558,6 +19825,192 @@ func (s *UpdateFunctionEventInvokeConfigOutput) SetMaximumRetryAttempts(v int64) return s } +type UpdateFunctionUrlConfigInput struct { + _ struct{} `type:"structure"` + + // The type of authentication that your function URL uses. Set to AWS_IAM if + // you want to restrict access to authenticated IAM users only. Set to NONE + // if you want to bypass IAM authentication to create a public endpoint. For + // more information, see Security and auth model for Lambda function URLs (https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html). + AuthType *string `type:"string" enum:"FunctionUrlAuthType"` + + // The cross-origin resource sharing (CORS) (https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) + // settings for your function URL. + Cors *Cors `type:"structure"` + + // The name of the Lambda function. + // + // Name formats + // + // * Function name - my-function. + // + // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. + // + // * Partial ARN - 123456789012:function:my-function. + // + // The length constraint applies only to the full ARN. If you specify only the + // function name, it is limited to 64 characters in length. + // + // FunctionName is a required field + FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` + + // The alias name. + Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateFunctionUrlConfigInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateFunctionUrlConfigInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateFunctionUrlConfigInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateFunctionUrlConfigInput"} + if s.FunctionName == nil { + invalidParams.Add(request.NewErrParamRequired("FunctionName")) + } + if s.FunctionName != nil && len(*s.FunctionName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FunctionName", 1)) + } + if s.Qualifier != nil && len(*s.Qualifier) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Qualifier", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAuthType sets the AuthType field's value. +func (s *UpdateFunctionUrlConfigInput) SetAuthType(v string) *UpdateFunctionUrlConfigInput { + s.AuthType = &v + return s +} + +// SetCors sets the Cors field's value. +func (s *UpdateFunctionUrlConfigInput) SetCors(v *Cors) *UpdateFunctionUrlConfigInput { + s.Cors = v + return s +} + +// SetFunctionName sets the FunctionName field's value. +func (s *UpdateFunctionUrlConfigInput) SetFunctionName(v string) *UpdateFunctionUrlConfigInput { + s.FunctionName = &v + return s +} + +// SetQualifier sets the Qualifier field's value. +func (s *UpdateFunctionUrlConfigInput) SetQualifier(v string) *UpdateFunctionUrlConfigInput { + s.Qualifier = &v + return s +} + +type UpdateFunctionUrlConfigOutput struct { + _ struct{} `type:"structure"` + + // The type of authentication that your function URL uses. Set to AWS_IAM if + // you want to restrict access to authenticated IAM users only. Set to NONE + // if you want to bypass IAM authentication to create a public endpoint. For + // more information, see Security and auth model for Lambda function URLs (https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html). + // + // AuthType is a required field + AuthType *string `type:"string" required:"true" enum:"FunctionUrlAuthType"` + + // The cross-origin resource sharing (CORS) (https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) + // settings for your function URL. + Cors *Cors `type:"structure"` + + // When the function URL was created, in ISO-8601 format (https://www.w3.org/TR/NOTE-datetime) + // (YYYY-MM-DDThh:mm:ss.sTZD). + // + // CreationTime is a required field + CreationTime *string `type:"string" required:"true"` + + // The Amazon Resource Name (ARN) of your function. + // + // FunctionArn is a required field + FunctionArn *string `type:"string" required:"true"` + + // The HTTP URL endpoint for your function. + // + // FunctionUrl is a required field + FunctionUrl *string `min:"40" type:"string" required:"true"` + + // When the function URL configuration was last updated, in ISO-8601 format + // (https://www.w3.org/TR/NOTE-datetime) (YYYY-MM-DDThh:mm:ss.sTZD). + // + // LastModifiedTime is a required field + LastModifiedTime *string `type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateFunctionUrlConfigOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateFunctionUrlConfigOutput) GoString() string { + return s.String() +} + +// SetAuthType sets the AuthType field's value. +func (s *UpdateFunctionUrlConfigOutput) SetAuthType(v string) *UpdateFunctionUrlConfigOutput { + s.AuthType = &v + return s +} + +// SetCors sets the Cors field's value. +func (s *UpdateFunctionUrlConfigOutput) SetCors(v *Cors) *UpdateFunctionUrlConfigOutput { + s.Cors = v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *UpdateFunctionUrlConfigOutput) SetCreationTime(v string) *UpdateFunctionUrlConfigOutput { + s.CreationTime = &v + return s +} + +// SetFunctionArn sets the FunctionArn field's value. +func (s *UpdateFunctionUrlConfigOutput) SetFunctionArn(v string) *UpdateFunctionUrlConfigOutput { + s.FunctionArn = &v + return s +} + +// SetFunctionUrl sets the FunctionUrl field's value. +func (s *UpdateFunctionUrlConfigOutput) SetFunctionUrl(v string) *UpdateFunctionUrlConfigOutput { + s.FunctionUrl = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *UpdateFunctionUrlConfigOutput) SetLastModifiedTime(v string) *UpdateFunctionUrlConfigOutput { + s.LastModifiedTime = &v + return s +} + // The VPC security groups and subnets that are attached to a Lambda function. // For more information, see VPC Settings (https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html). type VpcConfig struct { @@ -18726,6 +20179,22 @@ func FunctionResponseType_Values() []string { } } +const ( + // FunctionUrlAuthTypeNone is a FunctionUrlAuthType enum value + FunctionUrlAuthTypeNone = "NONE" + + // FunctionUrlAuthTypeAwsIam is a FunctionUrlAuthType enum value + FunctionUrlAuthTypeAwsIam = "AWS_IAM" +) + +// FunctionUrlAuthType_Values returns all elements of the FunctionUrlAuthType enum +func FunctionUrlAuthType_Values() []string { + return []string{ + FunctionUrlAuthTypeNone, + FunctionUrlAuthTypeAwsIam, + } +} + const ( // FunctionVersionAll is a FunctionVersion enum value FunctionVersionAll = "ALL" diff --git a/service/lambda/lambdaiface/interface.go b/service/lambda/lambdaiface/interface.go index bf1ea7cb361..b7808c5c3c0 100644 --- a/service/lambda/lambdaiface/interface.go +++ b/service/lambda/lambdaiface/interface.go @@ -84,6 +84,10 @@ type LambdaAPI interface { CreateFunctionWithContext(aws.Context, *lambda.CreateFunctionInput, ...request.Option) (*lambda.FunctionConfiguration, error) CreateFunctionRequest(*lambda.CreateFunctionInput) (*request.Request, *lambda.FunctionConfiguration) + CreateFunctionUrlConfig(*lambda.CreateFunctionUrlConfigInput) (*lambda.CreateFunctionUrlConfigOutput, error) + CreateFunctionUrlConfigWithContext(aws.Context, *lambda.CreateFunctionUrlConfigInput, ...request.Option) (*lambda.CreateFunctionUrlConfigOutput, error) + CreateFunctionUrlConfigRequest(*lambda.CreateFunctionUrlConfigInput) (*request.Request, *lambda.CreateFunctionUrlConfigOutput) + DeleteAlias(*lambda.DeleteAliasInput) (*lambda.DeleteAliasOutput, error) DeleteAliasWithContext(aws.Context, *lambda.DeleteAliasInput, ...request.Option) (*lambda.DeleteAliasOutput, error) DeleteAliasRequest(*lambda.DeleteAliasInput) (*request.Request, *lambda.DeleteAliasOutput) @@ -112,6 +116,10 @@ type LambdaAPI interface { DeleteFunctionEventInvokeConfigWithContext(aws.Context, *lambda.DeleteFunctionEventInvokeConfigInput, ...request.Option) (*lambda.DeleteFunctionEventInvokeConfigOutput, error) DeleteFunctionEventInvokeConfigRequest(*lambda.DeleteFunctionEventInvokeConfigInput) (*request.Request, *lambda.DeleteFunctionEventInvokeConfigOutput) + DeleteFunctionUrlConfig(*lambda.DeleteFunctionUrlConfigInput) (*lambda.DeleteFunctionUrlConfigOutput, error) + DeleteFunctionUrlConfigWithContext(aws.Context, *lambda.DeleteFunctionUrlConfigInput, ...request.Option) (*lambda.DeleteFunctionUrlConfigOutput, error) + DeleteFunctionUrlConfigRequest(*lambda.DeleteFunctionUrlConfigInput) (*request.Request, *lambda.DeleteFunctionUrlConfigOutput) + DeleteLayerVersion(*lambda.DeleteLayerVersionInput) (*lambda.DeleteLayerVersionOutput, error) DeleteLayerVersionWithContext(aws.Context, *lambda.DeleteLayerVersionInput, ...request.Option) (*lambda.DeleteLayerVersionOutput, error) DeleteLayerVersionRequest(*lambda.DeleteLayerVersionInput) (*request.Request, *lambda.DeleteLayerVersionOutput) @@ -156,6 +164,10 @@ type LambdaAPI interface { GetFunctionEventInvokeConfigWithContext(aws.Context, *lambda.GetFunctionEventInvokeConfigInput, ...request.Option) (*lambda.GetFunctionEventInvokeConfigOutput, error) GetFunctionEventInvokeConfigRequest(*lambda.GetFunctionEventInvokeConfigInput) (*request.Request, *lambda.GetFunctionEventInvokeConfigOutput) + GetFunctionUrlConfig(*lambda.GetFunctionUrlConfigInput) (*lambda.GetFunctionUrlConfigOutput, error) + GetFunctionUrlConfigWithContext(aws.Context, *lambda.GetFunctionUrlConfigInput, ...request.Option) (*lambda.GetFunctionUrlConfigOutput, error) + GetFunctionUrlConfigRequest(*lambda.GetFunctionUrlConfigInput) (*request.Request, *lambda.GetFunctionUrlConfigOutput) + GetLayerVersion(*lambda.GetLayerVersionInput) (*lambda.GetLayerVersionOutput, error) GetLayerVersionWithContext(aws.Context, *lambda.GetLayerVersionInput, ...request.Option) (*lambda.GetLayerVersionOutput, error) GetLayerVersionRequest(*lambda.GetLayerVersionInput) (*request.Request, *lambda.GetLayerVersionOutput) @@ -212,6 +224,13 @@ type LambdaAPI interface { ListFunctionEventInvokeConfigsPages(*lambda.ListFunctionEventInvokeConfigsInput, func(*lambda.ListFunctionEventInvokeConfigsOutput, bool) bool) error ListFunctionEventInvokeConfigsPagesWithContext(aws.Context, *lambda.ListFunctionEventInvokeConfigsInput, func(*lambda.ListFunctionEventInvokeConfigsOutput, bool) bool, ...request.Option) error + ListFunctionUrlConfigs(*lambda.ListFunctionUrlConfigsInput) (*lambda.ListFunctionUrlConfigsOutput, error) + ListFunctionUrlConfigsWithContext(aws.Context, *lambda.ListFunctionUrlConfigsInput, ...request.Option) (*lambda.ListFunctionUrlConfigsOutput, error) + ListFunctionUrlConfigsRequest(*lambda.ListFunctionUrlConfigsInput) (*request.Request, *lambda.ListFunctionUrlConfigsOutput) + + ListFunctionUrlConfigsPages(*lambda.ListFunctionUrlConfigsInput, func(*lambda.ListFunctionUrlConfigsOutput, bool) bool) error + ListFunctionUrlConfigsPagesWithContext(aws.Context, *lambda.ListFunctionUrlConfigsInput, func(*lambda.ListFunctionUrlConfigsOutput, bool) bool, ...request.Option) error + ListFunctions(*lambda.ListFunctionsInput) (*lambda.ListFunctionsOutput, error) ListFunctionsWithContext(aws.Context, *lambda.ListFunctionsInput, ...request.Option) (*lambda.ListFunctionsOutput, error) ListFunctionsRequest(*lambda.ListFunctionsInput) (*request.Request, *lambda.ListFunctionsOutput) @@ -322,6 +341,10 @@ type LambdaAPI interface { UpdateFunctionEventInvokeConfigWithContext(aws.Context, *lambda.UpdateFunctionEventInvokeConfigInput, ...request.Option) (*lambda.UpdateFunctionEventInvokeConfigOutput, error) UpdateFunctionEventInvokeConfigRequest(*lambda.UpdateFunctionEventInvokeConfigInput) (*request.Request, *lambda.UpdateFunctionEventInvokeConfigOutput) + UpdateFunctionUrlConfig(*lambda.UpdateFunctionUrlConfigInput) (*lambda.UpdateFunctionUrlConfigOutput, error) + UpdateFunctionUrlConfigWithContext(aws.Context, *lambda.UpdateFunctionUrlConfigInput, ...request.Option) (*lambda.UpdateFunctionUrlConfigOutput, error) + UpdateFunctionUrlConfigRequest(*lambda.UpdateFunctionUrlConfigInput) (*request.Request, *lambda.UpdateFunctionUrlConfigOutput) + WaitUntilFunctionActive(*lambda.GetFunctionConfigurationInput) error WaitUntilFunctionActiveWithContext(aws.Context, *lambda.GetFunctionConfigurationInput, ...request.WaiterOption) error diff --git a/service/panorama/api.go b/service/panorama/api.go index 6b5e8181505..71b6112a7f6 100644 --- a/service/panorama/api.go +++ b/service/panorama/api.go @@ -2974,8 +2974,9 @@ func (c *Panorama) ProvisionDeviceRequest(input *ProvisionDeviceInput) (req *req // // Creates a device and returns a configuration archive. The configuration archive // is a ZIP file that contains a provisioning certificate that is valid for -// 5 minutes. Transfer the configuration archive to the device with the included -// USB storage device within 5 minutes. +// 5 minutes. Name the configuration archive certificates-omni_device-name.zip +// and transfer it to the device within 5 minutes. Use the included USB storage +// device and connect it to the USB 3.0 port next to the HDMI output. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -5353,6 +5354,9 @@ type DescribeDeviceOutput struct { // The device's ARN. Arn *string `min:"1" type:"string"` + // The device's maker. + Brand *string `type:"string" enum:"DeviceBrand"` + // When the device was created. CreatedTime *time.Time `type:"timestamp"` @@ -5429,6 +5433,12 @@ func (s *DescribeDeviceOutput) SetArn(v string) *DescribeDeviceOutput { return s } +// SetBrand sets the Brand field's value. +func (s *DescribeDeviceOutput) SetBrand(v string) *DescribeDeviceOutput { + s.Brand = &v + return s +} + // SetCreatedTime sets the CreatedTime field's value. func (s *DescribeDeviceOutput) SetCreatedTime(v time.Time) *DescribeDeviceOutput { s.CreatedTime = &v @@ -6512,6 +6522,9 @@ func (s *DescribePackageVersionOutput) SetStatusDescription(v string) *DescribeP type Device struct { _ struct{} `type:"structure"` + // The device's maker. + Brand *string `type:"string" enum:"DeviceBrand"` + // When the device was created. CreatedTime *time.Time `type:"timestamp"` @@ -6549,6 +6562,12 @@ func (s Device) GoString() string { return s.String() } +// SetBrand sets the Brand field's value. +func (s *Device) SetBrand(v string) *Device { + s.Brand = &v + return s +} + // SetCreatedTime sets the CreatedTime field's value. func (s *Device) SetCreatedTime(v time.Time) *Device { s.CreatedTime = &v @@ -10632,6 +10651,9 @@ const ( // ApplicationInstanceStatusRemovalSucceeded is a ApplicationInstanceStatus enum value ApplicationInstanceStatusRemovalSucceeded = "REMOVAL_SUCCEEDED" + + // ApplicationInstanceStatusDeploymentFailed is a ApplicationInstanceStatus enum value + ApplicationInstanceStatusDeploymentFailed = "DEPLOYMENT_FAILED" ) // ApplicationInstanceStatus_Values returns all elements of the ApplicationInstanceStatus enum @@ -10647,6 +10669,7 @@ func ApplicationInstanceStatus_Values() []string { ApplicationInstanceStatusRemovalInProgress, ApplicationInstanceStatusRemovalFailed, ApplicationInstanceStatusRemovalSucceeded, + ApplicationInstanceStatusDeploymentFailed, } } @@ -10666,6 +10689,22 @@ func ConnectionType_Values() []string { } } +const ( + // DeviceBrandAwsPanorama is a DeviceBrand enum value + DeviceBrandAwsPanorama = "AWS_PANORAMA" + + // DeviceBrandLenovo is a DeviceBrand enum value + DeviceBrandLenovo = "LENOVO" +) + +// DeviceBrand_Values returns all elements of the DeviceBrand enum +func DeviceBrand_Values() []string { + return []string{ + DeviceBrandAwsPanorama, + DeviceBrandLenovo, + } +} + const ( // DeviceConnectionStatusOnline is a DeviceConnectionStatus enum value DeviceConnectionStatusOnline = "ONLINE" @@ -10956,6 +10995,9 @@ const ( // StatusFilterProcessingRemoval is a StatusFilter enum value StatusFilterProcessingRemoval = "PROCESSING_REMOVAL" + + // StatusFilterDeploymentFailed is a StatusFilter enum value + StatusFilterDeploymentFailed = "DEPLOYMENT_FAILED" ) // StatusFilter_Values returns all elements of the StatusFilter enum @@ -10967,6 +11009,7 @@ func StatusFilter_Values() []string { StatusFilterRemovalFailed, StatusFilterProcessingDeployment, StatusFilterProcessingRemoval, + StatusFilterDeploymentFailed, } }