Documentation ¶
Overview ¶
Package apigateway provides the API client, operations, and parameter types for Amazon API Gateway.
Amazon API Gateway ¶
Amazon API Gateway helps developers deliver robust, secure, and scalable mobile and web application back ends. API Gateway allows developers to securely connect mobile and web applications to APIs that run on Lambda, Amazon EC2, or other publicly addressable web services that are hosted outside of AWS.
Index ¶
- Constants
- func NewDefaultEndpointResolver() *internalendpoints.Resolver
- func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options)
- func WithEndpointResolver(v EndpointResolver) func(*Options)deprecated
- func WithEndpointResolverV2(v EndpointResolverV2) func(*Options)
- func WithSigV4SigningName(name string) func(*Options)
- func WithSigV4SigningRegion(region string) func(*Options)
- type AuthResolverParameters
- type AuthSchemeResolver
- type Client
- func (c *Client) CreateApiKey(ctx context.Context, params *CreateApiKeyInput, optFns ...func(*Options)) (*CreateApiKeyOutput, error)
- func (c *Client) CreateAuthorizer(ctx context.Context, params *CreateAuthorizerInput, optFns ...func(*Options)) (*CreateAuthorizerOutput, error)
- func (c *Client) CreateBasePathMapping(ctx context.Context, params *CreateBasePathMappingInput, ...) (*CreateBasePathMappingOutput, error)
- func (c *Client) CreateDeployment(ctx context.Context, params *CreateDeploymentInput, optFns ...func(*Options)) (*CreateDeploymentOutput, error)
- func (c *Client) CreateDocumentationPart(ctx context.Context, params *CreateDocumentationPartInput, ...) (*CreateDocumentationPartOutput, error)
- func (c *Client) CreateDocumentationVersion(ctx context.Context, params *CreateDocumentationVersionInput, ...) (*CreateDocumentationVersionOutput, error)
- func (c *Client) CreateDomainName(ctx context.Context, params *CreateDomainNameInput, optFns ...func(*Options)) (*CreateDomainNameOutput, error)
- func (c *Client) CreateDomainNameAccessAssociation(ctx context.Context, params *CreateDomainNameAccessAssociationInput, ...) (*CreateDomainNameAccessAssociationOutput, error)
- func (c *Client) CreateModel(ctx context.Context, params *CreateModelInput, optFns ...func(*Options)) (*CreateModelOutput, error)
- func (c *Client) CreateRequestValidator(ctx context.Context, params *CreateRequestValidatorInput, ...) (*CreateRequestValidatorOutput, error)
- func (c *Client) CreateResource(ctx context.Context, params *CreateResourceInput, optFns ...func(*Options)) (*CreateResourceOutput, error)
- func (c *Client) CreateRestApi(ctx context.Context, params *CreateRestApiInput, optFns ...func(*Options)) (*CreateRestApiOutput, error)
- func (c *Client) CreateStage(ctx context.Context, params *CreateStageInput, optFns ...func(*Options)) (*CreateStageOutput, error)
- func (c *Client) CreateUsagePlan(ctx context.Context, params *CreateUsagePlanInput, optFns ...func(*Options)) (*CreateUsagePlanOutput, error)
- func (c *Client) CreateUsagePlanKey(ctx context.Context, params *CreateUsagePlanKeyInput, optFns ...func(*Options)) (*CreateUsagePlanKeyOutput, error)
- func (c *Client) CreateVpcLink(ctx context.Context, params *CreateVpcLinkInput, optFns ...func(*Options)) (*CreateVpcLinkOutput, error)
- func (c *Client) DeleteApiKey(ctx context.Context, params *DeleteApiKeyInput, optFns ...func(*Options)) (*DeleteApiKeyOutput, error)
- func (c *Client) DeleteAuthorizer(ctx context.Context, params *DeleteAuthorizerInput, optFns ...func(*Options)) (*DeleteAuthorizerOutput, error)
- func (c *Client) DeleteBasePathMapping(ctx context.Context, params *DeleteBasePathMappingInput, ...) (*DeleteBasePathMappingOutput, error)
- func (c *Client) DeleteClientCertificate(ctx context.Context, params *DeleteClientCertificateInput, ...) (*DeleteClientCertificateOutput, error)
- func (c *Client) DeleteDeployment(ctx context.Context, params *DeleteDeploymentInput, optFns ...func(*Options)) (*DeleteDeploymentOutput, error)
- func (c *Client) DeleteDocumentationPart(ctx context.Context, params *DeleteDocumentationPartInput, ...) (*DeleteDocumentationPartOutput, error)
- func (c *Client) DeleteDocumentationVersion(ctx context.Context, params *DeleteDocumentationVersionInput, ...) (*DeleteDocumentationVersionOutput, error)
- func (c *Client) DeleteDomainName(ctx context.Context, params *DeleteDomainNameInput, optFns ...func(*Options)) (*DeleteDomainNameOutput, error)
- func (c *Client) DeleteDomainNameAccessAssociation(ctx context.Context, params *DeleteDomainNameAccessAssociationInput, ...) (*DeleteDomainNameAccessAssociationOutput, error)
- func (c *Client) DeleteGatewayResponse(ctx context.Context, params *DeleteGatewayResponseInput, ...) (*DeleteGatewayResponseOutput, error)
- func (c *Client) DeleteIntegration(ctx context.Context, params *DeleteIntegrationInput, optFns ...func(*Options)) (*DeleteIntegrationOutput, error)
- func (c *Client) DeleteIntegrationResponse(ctx context.Context, params *DeleteIntegrationResponseInput, ...) (*DeleteIntegrationResponseOutput, error)
- func (c *Client) DeleteMethod(ctx context.Context, params *DeleteMethodInput, optFns ...func(*Options)) (*DeleteMethodOutput, error)
- func (c *Client) DeleteMethodResponse(ctx context.Context, params *DeleteMethodResponseInput, ...) (*DeleteMethodResponseOutput, error)
- func (c *Client) DeleteModel(ctx context.Context, params *DeleteModelInput, optFns ...func(*Options)) (*DeleteModelOutput, error)
- func (c *Client) DeleteRequestValidator(ctx context.Context, params *DeleteRequestValidatorInput, ...) (*DeleteRequestValidatorOutput, error)
- func (c *Client) DeleteResource(ctx context.Context, params *DeleteResourceInput, optFns ...func(*Options)) (*DeleteResourceOutput, error)
- func (c *Client) DeleteRestApi(ctx context.Context, params *DeleteRestApiInput, optFns ...func(*Options)) (*DeleteRestApiOutput, error)
- func (c *Client) DeleteStage(ctx context.Context, params *DeleteStageInput, optFns ...func(*Options)) (*DeleteStageOutput, error)
- func (c *Client) DeleteUsagePlan(ctx context.Context, params *DeleteUsagePlanInput, optFns ...func(*Options)) (*DeleteUsagePlanOutput, error)
- func (c *Client) DeleteUsagePlanKey(ctx context.Context, params *DeleteUsagePlanKeyInput, optFns ...func(*Options)) (*DeleteUsagePlanKeyOutput, error)
- func (c *Client) DeleteVpcLink(ctx context.Context, params *DeleteVpcLinkInput, optFns ...func(*Options)) (*DeleteVpcLinkOutput, error)
- func (c *Client) FlushStageAuthorizersCache(ctx context.Context, params *FlushStageAuthorizersCacheInput, ...) (*FlushStageAuthorizersCacheOutput, error)
- func (c *Client) FlushStageCache(ctx context.Context, params *FlushStageCacheInput, optFns ...func(*Options)) (*FlushStageCacheOutput, error)
- func (c *Client) GenerateClientCertificate(ctx context.Context, params *GenerateClientCertificateInput, ...) (*GenerateClientCertificateOutput, error)
- func (c *Client) GetAccount(ctx context.Context, params *GetAccountInput, optFns ...func(*Options)) (*GetAccountOutput, error)
- func (c *Client) GetApiKey(ctx context.Context, params *GetApiKeyInput, optFns ...func(*Options)) (*GetApiKeyOutput, error)
- func (c *Client) GetApiKeys(ctx context.Context, params *GetApiKeysInput, optFns ...func(*Options)) (*GetApiKeysOutput, error)
- func (c *Client) GetAuthorizer(ctx context.Context, params *GetAuthorizerInput, optFns ...func(*Options)) (*GetAuthorizerOutput, error)
- func (c *Client) GetAuthorizers(ctx context.Context, params *GetAuthorizersInput, optFns ...func(*Options)) (*GetAuthorizersOutput, error)
- func (c *Client) GetBasePathMapping(ctx context.Context, params *GetBasePathMappingInput, optFns ...func(*Options)) (*GetBasePathMappingOutput, error)
- func (c *Client) GetBasePathMappings(ctx context.Context, params *GetBasePathMappingsInput, ...) (*GetBasePathMappingsOutput, error)
- func (c *Client) GetClientCertificate(ctx context.Context, params *GetClientCertificateInput, ...) (*GetClientCertificateOutput, error)
- func (c *Client) GetClientCertificates(ctx context.Context, params *GetClientCertificatesInput, ...) (*GetClientCertificatesOutput, error)
- func (c *Client) GetDeployment(ctx context.Context, params *GetDeploymentInput, optFns ...func(*Options)) (*GetDeploymentOutput, error)
- func (c *Client) GetDeployments(ctx context.Context, params *GetDeploymentsInput, optFns ...func(*Options)) (*GetDeploymentsOutput, error)
- func (c *Client) GetDocumentationPart(ctx context.Context, params *GetDocumentationPartInput, ...) (*GetDocumentationPartOutput, error)
- func (c *Client) GetDocumentationParts(ctx context.Context, params *GetDocumentationPartsInput, ...) (*GetDocumentationPartsOutput, error)
- func (c *Client) GetDocumentationVersion(ctx context.Context, params *GetDocumentationVersionInput, ...) (*GetDocumentationVersionOutput, error)
- func (c *Client) GetDocumentationVersions(ctx context.Context, params *GetDocumentationVersionsInput, ...) (*GetDocumentationVersionsOutput, error)
- func (c *Client) GetDomainName(ctx context.Context, params *GetDomainNameInput, optFns ...func(*Options)) (*GetDomainNameOutput, error)
- func (c *Client) GetDomainNameAccessAssociations(ctx context.Context, params *GetDomainNameAccessAssociationsInput, ...) (*GetDomainNameAccessAssociationsOutput, error)
- func (c *Client) GetDomainNames(ctx context.Context, params *GetDomainNamesInput, optFns ...func(*Options)) (*GetDomainNamesOutput, error)
- func (c *Client) GetExport(ctx context.Context, params *GetExportInput, optFns ...func(*Options)) (*GetExportOutput, error)
- func (c *Client) GetGatewayResponse(ctx context.Context, params *GetGatewayResponseInput, optFns ...func(*Options)) (*GetGatewayResponseOutput, error)
- func (c *Client) GetGatewayResponses(ctx context.Context, params *GetGatewayResponsesInput, ...) (*GetGatewayResponsesOutput, error)
- func (c *Client) GetIntegration(ctx context.Context, params *GetIntegrationInput, optFns ...func(*Options)) (*GetIntegrationOutput, error)
- func (c *Client) GetIntegrationResponse(ctx context.Context, params *GetIntegrationResponseInput, ...) (*GetIntegrationResponseOutput, error)
- func (c *Client) GetMethod(ctx context.Context, params *GetMethodInput, optFns ...func(*Options)) (*GetMethodOutput, error)
- func (c *Client) GetMethodResponse(ctx context.Context, params *GetMethodResponseInput, optFns ...func(*Options)) (*GetMethodResponseOutput, error)
- func (c *Client) GetModel(ctx context.Context, params *GetModelInput, optFns ...func(*Options)) (*GetModelOutput, error)
- func (c *Client) GetModelTemplate(ctx context.Context, params *GetModelTemplateInput, optFns ...func(*Options)) (*GetModelTemplateOutput, error)
- func (c *Client) GetModels(ctx context.Context, params *GetModelsInput, optFns ...func(*Options)) (*GetModelsOutput, error)
- func (c *Client) GetRequestValidator(ctx context.Context, params *GetRequestValidatorInput, ...) (*GetRequestValidatorOutput, error)
- func (c *Client) GetRequestValidators(ctx context.Context, params *GetRequestValidatorsInput, ...) (*GetRequestValidatorsOutput, error)
- func (c *Client) GetResource(ctx context.Context, params *GetResourceInput, optFns ...func(*Options)) (*GetResourceOutput, error)
- func (c *Client) GetResources(ctx context.Context, params *GetResourcesInput, optFns ...func(*Options)) (*GetResourcesOutput, error)
- func (c *Client) GetRestApi(ctx context.Context, params *GetRestApiInput, optFns ...func(*Options)) (*GetRestApiOutput, error)
- func (c *Client) GetRestApis(ctx context.Context, params *GetRestApisInput, optFns ...func(*Options)) (*GetRestApisOutput, error)
- func (c *Client) GetSdk(ctx context.Context, params *GetSdkInput, optFns ...func(*Options)) (*GetSdkOutput, error)
- func (c *Client) GetSdkType(ctx context.Context, params *GetSdkTypeInput, optFns ...func(*Options)) (*GetSdkTypeOutput, error)
- func (c *Client) GetSdkTypes(ctx context.Context, params *GetSdkTypesInput, optFns ...func(*Options)) (*GetSdkTypesOutput, error)
- func (c *Client) GetStage(ctx context.Context, params *GetStageInput, optFns ...func(*Options)) (*GetStageOutput, error)
- func (c *Client) GetStages(ctx context.Context, params *GetStagesInput, optFns ...func(*Options)) (*GetStagesOutput, error)
- func (c *Client) GetTags(ctx context.Context, params *GetTagsInput, optFns ...func(*Options)) (*GetTagsOutput, error)
- func (c *Client) GetUsage(ctx context.Context, params *GetUsageInput, optFns ...func(*Options)) (*GetUsageOutput, error)
- func (c *Client) GetUsagePlan(ctx context.Context, params *GetUsagePlanInput, optFns ...func(*Options)) (*GetUsagePlanOutput, error)
- func (c *Client) GetUsagePlanKey(ctx context.Context, params *GetUsagePlanKeyInput, optFns ...func(*Options)) (*GetUsagePlanKeyOutput, error)
- func (c *Client) GetUsagePlanKeys(ctx context.Context, params *GetUsagePlanKeysInput, optFns ...func(*Options)) (*GetUsagePlanKeysOutput, error)
- func (c *Client) GetUsagePlans(ctx context.Context, params *GetUsagePlansInput, optFns ...func(*Options)) (*GetUsagePlansOutput, error)
- func (c *Client) GetVpcLink(ctx context.Context, params *GetVpcLinkInput, optFns ...func(*Options)) (*GetVpcLinkOutput, error)
- func (c *Client) GetVpcLinks(ctx context.Context, params *GetVpcLinksInput, optFns ...func(*Options)) (*GetVpcLinksOutput, error)
- func (c *Client) ImportApiKeys(ctx context.Context, params *ImportApiKeysInput, optFns ...func(*Options)) (*ImportApiKeysOutput, error)
- func (c *Client) ImportDocumentationParts(ctx context.Context, params *ImportDocumentationPartsInput, ...) (*ImportDocumentationPartsOutput, error)
- func (c *Client) ImportRestApi(ctx context.Context, params *ImportRestApiInput, optFns ...func(*Options)) (*ImportRestApiOutput, error)
- func (c *Client) Options() Options
- func (c *Client) PutGatewayResponse(ctx context.Context, params *PutGatewayResponseInput, optFns ...func(*Options)) (*PutGatewayResponseOutput, error)
- func (c *Client) PutIntegration(ctx context.Context, params *PutIntegrationInput, optFns ...func(*Options)) (*PutIntegrationOutput, error)
- func (c *Client) PutIntegrationResponse(ctx context.Context, params *PutIntegrationResponseInput, ...) (*PutIntegrationResponseOutput, error)
- func (c *Client) PutMethod(ctx context.Context, params *PutMethodInput, optFns ...func(*Options)) (*PutMethodOutput, error)
- func (c *Client) PutMethodResponse(ctx context.Context, params *PutMethodResponseInput, optFns ...func(*Options)) (*PutMethodResponseOutput, error)
- func (c *Client) PutRestApi(ctx context.Context, params *PutRestApiInput, optFns ...func(*Options)) (*PutRestApiOutput, error)
- func (c *Client) RejectDomainNameAccessAssociation(ctx context.Context, params *RejectDomainNameAccessAssociationInput, ...) (*RejectDomainNameAccessAssociationOutput, error)
- func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error)
- func (c *Client) TestInvokeAuthorizer(ctx context.Context, params *TestInvokeAuthorizerInput, ...) (*TestInvokeAuthorizerOutput, error)
- func (c *Client) TestInvokeMethod(ctx context.Context, params *TestInvokeMethodInput, optFns ...func(*Options)) (*TestInvokeMethodOutput, error)
- func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error)
- func (c *Client) UpdateAccount(ctx context.Context, params *UpdateAccountInput, optFns ...func(*Options)) (*UpdateAccountOutput, error)
- func (c *Client) UpdateApiKey(ctx context.Context, params *UpdateApiKeyInput, optFns ...func(*Options)) (*UpdateApiKeyOutput, error)
- func (c *Client) UpdateAuthorizer(ctx context.Context, params *UpdateAuthorizerInput, optFns ...func(*Options)) (*UpdateAuthorizerOutput, error)
- func (c *Client) UpdateBasePathMapping(ctx context.Context, params *UpdateBasePathMappingInput, ...) (*UpdateBasePathMappingOutput, error)
- func (c *Client) UpdateClientCertificate(ctx context.Context, params *UpdateClientCertificateInput, ...) (*UpdateClientCertificateOutput, error)
- func (c *Client) UpdateDeployment(ctx context.Context, params *UpdateDeploymentInput, optFns ...func(*Options)) (*UpdateDeploymentOutput, error)
- func (c *Client) UpdateDocumentationPart(ctx context.Context, params *UpdateDocumentationPartInput, ...) (*UpdateDocumentationPartOutput, error)
- func (c *Client) UpdateDocumentationVersion(ctx context.Context, params *UpdateDocumentationVersionInput, ...) (*UpdateDocumentationVersionOutput, error)
- func (c *Client) UpdateDomainName(ctx context.Context, params *UpdateDomainNameInput, optFns ...func(*Options)) (*UpdateDomainNameOutput, error)
- func (c *Client) UpdateGatewayResponse(ctx context.Context, params *UpdateGatewayResponseInput, ...) (*UpdateGatewayResponseOutput, error)
- func (c *Client) UpdateIntegration(ctx context.Context, params *UpdateIntegrationInput, optFns ...func(*Options)) (*UpdateIntegrationOutput, error)
- func (c *Client) UpdateIntegrationResponse(ctx context.Context, params *UpdateIntegrationResponseInput, ...) (*UpdateIntegrationResponseOutput, error)
- func (c *Client) UpdateMethod(ctx context.Context, params *UpdateMethodInput, optFns ...func(*Options)) (*UpdateMethodOutput, error)
- func (c *Client) UpdateMethodResponse(ctx context.Context, params *UpdateMethodResponseInput, ...) (*UpdateMethodResponseOutput, error)
- func (c *Client) UpdateModel(ctx context.Context, params *UpdateModelInput, optFns ...func(*Options)) (*UpdateModelOutput, error)
- func (c *Client) UpdateRequestValidator(ctx context.Context, params *UpdateRequestValidatorInput, ...) (*UpdateRequestValidatorOutput, error)
- func (c *Client) UpdateResource(ctx context.Context, params *UpdateResourceInput, optFns ...func(*Options)) (*UpdateResourceOutput, error)
- func (c *Client) UpdateRestApi(ctx context.Context, params *UpdateRestApiInput, optFns ...func(*Options)) (*UpdateRestApiOutput, error)
- func (c *Client) UpdateStage(ctx context.Context, params *UpdateStageInput, optFns ...func(*Options)) (*UpdateStageOutput, error)
- func (c *Client) UpdateUsage(ctx context.Context, params *UpdateUsageInput, optFns ...func(*Options)) (*UpdateUsageOutput, error)
- func (c *Client) UpdateUsagePlan(ctx context.Context, params *UpdateUsagePlanInput, optFns ...func(*Options)) (*UpdateUsagePlanOutput, error)
- func (c *Client) UpdateVpcLink(ctx context.Context, params *UpdateVpcLinkInput, optFns ...func(*Options)) (*UpdateVpcLinkOutput, error)
- type CreateApiKeyInput
- type CreateApiKeyOutput
- type CreateAuthorizerInput
- type CreateAuthorizerOutput
- type CreateBasePathMappingInput
- type CreateBasePathMappingOutput
- type CreateDeploymentInput
- type CreateDeploymentOutput
- type CreateDocumentationPartInput
- type CreateDocumentationPartOutput
- type CreateDocumentationVersionInput
- type CreateDocumentationVersionOutput
- type CreateDomainNameAccessAssociationInput
- type CreateDomainNameAccessAssociationOutput
- type CreateDomainNameInput
- type CreateDomainNameOutput
- type CreateModelInput
- type CreateModelOutput
- type CreateRequestValidatorInput
- type CreateRequestValidatorOutput
- type CreateResourceInput
- type CreateResourceOutput
- type CreateRestApiInput
- type CreateRestApiOutput
- type CreateStageInput
- type CreateStageOutput
- type CreateUsagePlanInput
- type CreateUsagePlanKeyInput
- type CreateUsagePlanKeyOutput
- type CreateUsagePlanOutput
- type CreateVpcLinkInput
- type CreateVpcLinkOutput
- type DeleteApiKeyInput
- type DeleteApiKeyOutput
- type DeleteAuthorizerInput
- type DeleteAuthorizerOutput
- type DeleteBasePathMappingInput
- type DeleteBasePathMappingOutput
- type DeleteClientCertificateInput
- type DeleteClientCertificateOutput
- type DeleteDeploymentInput
- type DeleteDeploymentOutput
- type DeleteDocumentationPartInput
- type DeleteDocumentationPartOutput
- type DeleteDocumentationVersionInput
- type DeleteDocumentationVersionOutput
- type DeleteDomainNameAccessAssociationInput
- type DeleteDomainNameAccessAssociationOutput
- type DeleteDomainNameInput
- type DeleteDomainNameOutput
- type DeleteGatewayResponseInput
- type DeleteGatewayResponseOutput
- type DeleteIntegrationInput
- type DeleteIntegrationOutput
- type DeleteIntegrationResponseInput
- type DeleteIntegrationResponseOutput
- type DeleteMethodInput
- type DeleteMethodOutput
- type DeleteMethodResponseInput
- type DeleteMethodResponseOutput
- type DeleteModelInput
- type DeleteModelOutput
- type DeleteRequestValidatorInput
- type DeleteRequestValidatorOutput
- type DeleteResourceInput
- type DeleteResourceOutput
- type DeleteRestApiInput
- type DeleteRestApiOutput
- type DeleteStageInput
- type DeleteStageOutput
- type DeleteUsagePlanInput
- type DeleteUsagePlanKeyInput
- type DeleteUsagePlanKeyOutput
- type DeleteUsagePlanOutput
- type DeleteVpcLinkInput
- type DeleteVpcLinkOutput
- type EndpointParameters
- type EndpointResolver
- type EndpointResolverFunc
- type EndpointResolverOptions
- type EndpointResolverV2
- type FlushStageAuthorizersCacheInput
- type FlushStageAuthorizersCacheOutput
- type FlushStageCacheInput
- type FlushStageCacheOutput
- type GenerateClientCertificateInput
- type GenerateClientCertificateOutput
- type GetAccountInput
- type GetAccountOutput
- type GetApiKeyInput
- type GetApiKeyOutput
- type GetApiKeysAPIClient
- type GetApiKeysInput
- type GetApiKeysOutput
- type GetApiKeysPaginator
- type GetApiKeysPaginatorOptions
- type GetAuthorizerInput
- type GetAuthorizerOutput
- type GetAuthorizersInput
- type GetAuthorizersOutput
- type GetBasePathMappingInput
- type GetBasePathMappingOutput
- type GetBasePathMappingsAPIClient
- type GetBasePathMappingsInput
- type GetBasePathMappingsOutput
- type GetBasePathMappingsPaginator
- type GetBasePathMappingsPaginatorOptions
- type GetClientCertificateInput
- type GetClientCertificateOutput
- type GetClientCertificatesAPIClient
- type GetClientCertificatesInput
- type GetClientCertificatesOutput
- type GetClientCertificatesPaginator
- type GetClientCertificatesPaginatorOptions
- type GetDeploymentInput
- type GetDeploymentOutput
- type GetDeploymentsAPIClient
- type GetDeploymentsInput
- type GetDeploymentsOutput
- type GetDeploymentsPaginator
- type GetDeploymentsPaginatorOptions
- type GetDocumentationPartInput
- type GetDocumentationPartOutput
- type GetDocumentationPartsInput
- type GetDocumentationPartsOutput
- type GetDocumentationVersionInput
- type GetDocumentationVersionOutput
- type GetDocumentationVersionsInput
- type GetDocumentationVersionsOutput
- type GetDomainNameAccessAssociationsInput
- type GetDomainNameAccessAssociationsOutput
- type GetDomainNameInput
- type GetDomainNameOutput
- type GetDomainNamesAPIClient
- type GetDomainNamesInput
- type GetDomainNamesOutput
- type GetDomainNamesPaginator
- type GetDomainNamesPaginatorOptions
- type GetExportInput
- type GetExportOutput
- type GetGatewayResponseInput
- type GetGatewayResponseOutput
- type GetGatewayResponsesInput
- type GetGatewayResponsesOutput
- type GetIntegrationInput
- type GetIntegrationOutput
- type GetIntegrationResponseInput
- type GetIntegrationResponseOutput
- type GetMethodInput
- type GetMethodOutput
- type GetMethodResponseInput
- type GetMethodResponseOutput
- type GetModelInput
- type GetModelOutput
- type GetModelTemplateInput
- type GetModelTemplateOutput
- type GetModelsAPIClient
- type GetModelsInput
- type GetModelsOutput
- type GetModelsPaginator
- type GetModelsPaginatorOptions
- type GetRequestValidatorInput
- type GetRequestValidatorOutput
- type GetRequestValidatorsInput
- type GetRequestValidatorsOutput
- type GetResourceInput
- type GetResourceOutput
- type GetResourcesAPIClient
- type GetResourcesInput
- type GetResourcesOutput
- type GetResourcesPaginator
- type GetResourcesPaginatorOptions
- type GetRestApiInput
- type GetRestApiOutput
- type GetRestApisAPIClient
- type GetRestApisInput
- type GetRestApisOutput
- type GetRestApisPaginator
- type GetRestApisPaginatorOptions
- type GetSdkInput
- type GetSdkOutput
- type GetSdkTypeInput
- type GetSdkTypeOutput
- type GetSdkTypesInput
- type GetSdkTypesOutput
- type GetStageInput
- type GetStageOutput
- type GetStagesInput
- type GetStagesOutput
- type GetTagsInput
- type GetTagsOutput
- type GetUsageAPIClient
- type GetUsageInput
- type GetUsageOutput
- type GetUsagePaginator
- type GetUsagePaginatorOptions
- type GetUsagePlanInput
- type GetUsagePlanKeyInput
- type GetUsagePlanKeyOutput
- type GetUsagePlanKeysAPIClient
- type GetUsagePlanKeysInput
- type GetUsagePlanKeysOutput
- type GetUsagePlanKeysPaginator
- type GetUsagePlanKeysPaginatorOptions
- type GetUsagePlanOutput
- type GetUsagePlansAPIClient
- type GetUsagePlansInput
- type GetUsagePlansOutput
- type GetUsagePlansPaginator
- type GetUsagePlansPaginatorOptions
- type GetVpcLinkInput
- type GetVpcLinkOutput
- type GetVpcLinksAPIClient
- type GetVpcLinksInput
- type GetVpcLinksOutput
- type GetVpcLinksPaginator
- type GetVpcLinksPaginatorOptions
- type HTTPClient
- type HTTPSignerV4
- type ImportApiKeysInput
- type ImportApiKeysOutput
- type ImportDocumentationPartsInput
- type ImportDocumentationPartsOutput
- type ImportRestApiInput
- type ImportRestApiOutput
- type Options
- type PutGatewayResponseInput
- type PutGatewayResponseOutput
- type PutIntegrationInput
- type PutIntegrationOutput
- type PutIntegrationResponseInput
- type PutIntegrationResponseOutput
- type PutMethodInput
- type PutMethodOutput
- type PutMethodResponseInput
- type PutMethodResponseOutput
- type PutRestApiInput
- type PutRestApiOutput
- type RejectDomainNameAccessAssociationInput
- type RejectDomainNameAccessAssociationOutput
- type ResolveEndpoint
- type TagResourceInput
- type TagResourceOutput
- type TestInvokeAuthorizerInput
- type TestInvokeAuthorizerOutput
- type TestInvokeMethodInput
- type TestInvokeMethodOutput
- type UntagResourceInput
- type UntagResourceOutput
- type UpdateAccountInput
- type UpdateAccountOutput
- type UpdateApiKeyInput
- type UpdateApiKeyOutput
- type UpdateAuthorizerInput
- type UpdateAuthorizerOutput
- type UpdateBasePathMappingInput
- type UpdateBasePathMappingOutput
- type UpdateClientCertificateInput
- type UpdateClientCertificateOutput
- type UpdateDeploymentInput
- type UpdateDeploymentOutput
- type UpdateDocumentationPartInput
- type UpdateDocumentationPartOutput
- type UpdateDocumentationVersionInput
- type UpdateDocumentationVersionOutput
- type UpdateDomainNameInput
- type UpdateDomainNameOutput
- type UpdateGatewayResponseInput
- type UpdateGatewayResponseOutput
- type UpdateIntegrationInput
- type UpdateIntegrationOutput
- type UpdateIntegrationResponseInput
- type UpdateIntegrationResponseOutput
- type UpdateMethodInput
- type UpdateMethodOutput
- type UpdateMethodResponseInput
- type UpdateMethodResponseOutput
- type UpdateModelInput
- type UpdateModelOutput
- type UpdateRequestValidatorInput
- type UpdateRequestValidatorOutput
- type UpdateResourceInput
- type UpdateResourceOutput
- type UpdateRestApiInput
- type UpdateRestApiOutput
- type UpdateStageInput
- type UpdateStageOutput
- type UpdateUsageInput
- type UpdateUsageOutput
- type UpdateUsagePlanInput
- type UpdateUsagePlanOutput
- type UpdateVpcLinkInput
- type UpdateVpcLinkOutput
Constants ¶
const ServiceAPIVersion = "2015-07-09"
const ServiceID = "API Gateway"
Variables ¶
This section is empty.
Functions ¶
func NewDefaultEndpointResolver ¶
func NewDefaultEndpointResolver() *internalendpoints.Resolver
NewDefaultEndpointResolver constructs a new service endpoint resolver
func WithAPIOptions ¶ added in v1.0.0
func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options)
WithAPIOptions returns a functional option for setting the Client's APIOptions option.
func WithEndpointResolver
deprecated
func WithEndpointResolver(v EndpointResolver) func(*Options)
Deprecated: EndpointResolver and WithEndpointResolver. Providing a value for this field will likely prevent you from using any endpoint-related service features released after the introduction of EndpointResolverV2 and BaseEndpoint.
To migrate an EndpointResolver implementation that uses a custom endpoint, set the client option BaseEndpoint instead.
func WithEndpointResolverV2 ¶ added in v1.17.0
func WithEndpointResolverV2(v EndpointResolverV2) func(*Options)
WithEndpointResolverV2 returns a functional option for setting the Client's EndpointResolverV2 option.
func WithSigV4SigningName ¶ added in v1.20.2
WithSigV4SigningName applies an override to the authentication workflow to use the given signing name for SigV4-authenticated operations.
This is an advanced setting. The value here is FINAL, taking precedence over the resolved signing name from both auth scheme resolution and endpoint resolution.
func WithSigV4SigningRegion ¶ added in v1.20.2
WithSigV4SigningRegion applies an override to the authentication workflow to use the given signing region for SigV4-authenticated operations.
This is an advanced setting. The value here is FINAL, taking precedence over the resolved signing region from both auth scheme resolution and endpoint resolution.
Types ¶
type AuthResolverParameters ¶ added in v1.20.2
type AuthResolverParameters struct { // The name of the operation being invoked. Operation string // The region in which the operation is being invoked. Region string }
AuthResolverParameters contains the set of inputs necessary for auth scheme resolution.
type AuthSchemeResolver ¶ added in v1.20.2
type AuthSchemeResolver interface {
ResolveAuthSchemes(context.Context, *AuthResolverParameters) ([]*smithyauth.Option, error)
}
AuthSchemeResolver returns a set of possible authentication options for an operation.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides the API client to make operations call for Amazon API Gateway.
func New ¶
New returns an initialized Client based on the functional options. Provide additional functional options to further configure the behavior of the client, such as changing the client's endpoint or adding custom middleware behavior.
func NewFromConfig ¶
NewFromConfig returns a new client from the provided config.
func (*Client) CreateApiKey ¶
func (c *Client) CreateApiKey(ctx context.Context, params *CreateApiKeyInput, optFns ...func(*Options)) (*CreateApiKeyOutput, error)
Create an ApiKey resource.
func (*Client) CreateAuthorizer ¶
func (c *Client) CreateAuthorizer(ctx context.Context, params *CreateAuthorizerInput, optFns ...func(*Options)) (*CreateAuthorizerOutput, error)
Adds a new Authorizer resource to an existing RestApi resource.
func (*Client) CreateBasePathMapping ¶
func (c *Client) CreateBasePathMapping(ctx context.Context, params *CreateBasePathMappingInput, optFns ...func(*Options)) (*CreateBasePathMappingOutput, error)
Creates a new BasePathMapping resource.
func (*Client) CreateDeployment ¶
func (c *Client) CreateDeployment(ctx context.Context, params *CreateDeploymentInput, optFns ...func(*Options)) (*CreateDeploymentOutput, error)
Creates a Deployment resource, which makes a specified RestApi callable over the internet.
func (*Client) CreateDocumentationPart ¶
func (c *Client) CreateDocumentationPart(ctx context.Context, params *CreateDocumentationPartInput, optFns ...func(*Options)) (*CreateDocumentationPartOutput, error)
Creates a documentation part.
func (*Client) CreateDocumentationVersion ¶
func (c *Client) CreateDocumentationVersion(ctx context.Context, params *CreateDocumentationVersionInput, optFns ...func(*Options)) (*CreateDocumentationVersionOutput, error)
Creates a documentation version
func (*Client) CreateDomainName ¶
func (c *Client) CreateDomainName(ctx context.Context, params *CreateDomainNameInput, optFns ...func(*Options)) (*CreateDomainNameOutput, error)
Creates a new domain name.
func (*Client) CreateDomainNameAccessAssociation ¶ added in v1.28.0
func (c *Client) CreateDomainNameAccessAssociation(ctx context.Context, params *CreateDomainNameAccessAssociationInput, optFns ...func(*Options)) (*CreateDomainNameAccessAssociationOutput, error)
Creates a domain name access association resource between an access
association source and a private custom domain name.
func (*Client) CreateModel ¶
func (c *Client) CreateModel(ctx context.Context, params *CreateModelInput, optFns ...func(*Options)) (*CreateModelOutput, error)
Adds a new Model resource to an existing RestApi resource.
func (*Client) CreateRequestValidator ¶
func (c *Client) CreateRequestValidator(ctx context.Context, params *CreateRequestValidatorInput, optFns ...func(*Options)) (*CreateRequestValidatorOutput, error)
Creates a RequestValidator of a given RestApi.
func (*Client) CreateResource ¶
func (c *Client) CreateResource(ctx context.Context, params *CreateResourceInput, optFns ...func(*Options)) (*CreateResourceOutput, error)
Creates a Resource resource.
func (*Client) CreateRestApi ¶
func (c *Client) CreateRestApi(ctx context.Context, params *CreateRestApiInput, optFns ...func(*Options)) (*CreateRestApiOutput, error)
Creates a new RestApi resource.
func (*Client) CreateStage ¶
func (c *Client) CreateStage(ctx context.Context, params *CreateStageInput, optFns ...func(*Options)) (*CreateStageOutput, error)
Creates a new Stage resource that references a pre-existing Deployment for the API.
func (*Client) CreateUsagePlan ¶
func (c *Client) CreateUsagePlan(ctx context.Context, params *CreateUsagePlanInput, optFns ...func(*Options)) (*CreateUsagePlanOutput, error)
Creates a usage plan with the throttle and quota limits, as well as the associated API stages, specified in the payload.
func (*Client) CreateUsagePlanKey ¶
func (c *Client) CreateUsagePlanKey(ctx context.Context, params *CreateUsagePlanKeyInput, optFns ...func(*Options)) (*CreateUsagePlanKeyOutput, error)
Creates a usage plan key for adding an existing API key to a usage plan.
func (*Client) CreateVpcLink ¶
func (c *Client) CreateVpcLink(ctx context.Context, params *CreateVpcLinkInput, optFns ...func(*Options)) (*CreateVpcLinkOutput, error)
Creates a VPC link, under the caller's account in a selected region, in an asynchronous operation that typically takes 2-4 minutes to complete and become operational. The caller must have permissions to create and update VPC Endpoint services.
func (*Client) DeleteApiKey ¶
func (c *Client) DeleteApiKey(ctx context.Context, params *DeleteApiKeyInput, optFns ...func(*Options)) (*DeleteApiKeyOutput, error)
Deletes the ApiKey resource.
func (*Client) DeleteAuthorizer ¶
func (c *Client) DeleteAuthorizer(ctx context.Context, params *DeleteAuthorizerInput, optFns ...func(*Options)) (*DeleteAuthorizerOutput, error)
Deletes an existing Authorizer resource.
func (*Client) DeleteBasePathMapping ¶
func (c *Client) DeleteBasePathMapping(ctx context.Context, params *DeleteBasePathMappingInput, optFns ...func(*Options)) (*DeleteBasePathMappingOutput, error)
Deletes the BasePathMapping resource.
func (*Client) DeleteClientCertificate ¶
func (c *Client) DeleteClientCertificate(ctx context.Context, params *DeleteClientCertificateInput, optFns ...func(*Options)) (*DeleteClientCertificateOutput, error)
Deletes the ClientCertificate resource.
func (*Client) DeleteDeployment ¶
func (c *Client) DeleteDeployment(ctx context.Context, params *DeleteDeploymentInput, optFns ...func(*Options)) (*DeleteDeploymentOutput, error)
Deletes a Deployment resource. Deleting a deployment will only succeed if there are no Stage resources associated with it.
func (*Client) DeleteDocumentationPart ¶
func (c *Client) DeleteDocumentationPart(ctx context.Context, params *DeleteDocumentationPartInput, optFns ...func(*Options)) (*DeleteDocumentationPartOutput, error)
Deletes a documentation part
func (*Client) DeleteDocumentationVersion ¶
func (c *Client) DeleteDocumentationVersion(ctx context.Context, params *DeleteDocumentationVersionInput, optFns ...func(*Options)) (*DeleteDocumentationVersionOutput, error)
Deletes a documentation version.
func (*Client) DeleteDomainName ¶
func (c *Client) DeleteDomainName(ctx context.Context, params *DeleteDomainNameInput, optFns ...func(*Options)) (*DeleteDomainNameOutput, error)
Deletes the DomainName resource.
func (*Client) DeleteDomainNameAccessAssociation ¶ added in v1.28.0
func (c *Client) DeleteDomainNameAccessAssociation(ctx context.Context, params *DeleteDomainNameAccessAssociationInput, optFns ...func(*Options)) (*DeleteDomainNameAccessAssociationOutput, error)
Deletes the DomainNameAccessAssociation resource.
Only the AWS account that created the DomainNameAccessAssociation resource can delete it. To stop an access association source in another AWS account from accessing your private custom domain name, use the RejectDomainNameAccessAssociation operation.
func (*Client) DeleteGatewayResponse ¶
func (c *Client) DeleteGatewayResponse(ctx context.Context, params *DeleteGatewayResponseInput, optFns ...func(*Options)) (*DeleteGatewayResponseOutput, error)
Clears any customization of a GatewayResponse of a specified response type on the given RestApi and resets it with the default settings.
func (*Client) DeleteIntegration ¶
func (c *Client) DeleteIntegration(ctx context.Context, params *DeleteIntegrationInput, optFns ...func(*Options)) (*DeleteIntegrationOutput, error)
Represents a delete integration.
func (*Client) DeleteIntegrationResponse ¶
func (c *Client) DeleteIntegrationResponse(ctx context.Context, params *DeleteIntegrationResponseInput, optFns ...func(*Options)) (*DeleteIntegrationResponseOutput, error)
Represents a delete integration response.
func (*Client) DeleteMethod ¶
func (c *Client) DeleteMethod(ctx context.Context, params *DeleteMethodInput, optFns ...func(*Options)) (*DeleteMethodOutput, error)
Deletes an existing Method resource.
func (*Client) DeleteMethodResponse ¶
func (c *Client) DeleteMethodResponse(ctx context.Context, params *DeleteMethodResponseInput, optFns ...func(*Options)) (*DeleteMethodResponseOutput, error)
Deletes an existing MethodResponse resource.
func (*Client) DeleteModel ¶
func (c *Client) DeleteModel(ctx context.Context, params *DeleteModelInput, optFns ...func(*Options)) (*DeleteModelOutput, error)
Deletes a model.
func (*Client) DeleteRequestValidator ¶
func (c *Client) DeleteRequestValidator(ctx context.Context, params *DeleteRequestValidatorInput, optFns ...func(*Options)) (*DeleteRequestValidatorOutput, error)
Deletes a RequestValidator of a given RestApi.
func (*Client) DeleteResource ¶
func (c *Client) DeleteResource(ctx context.Context, params *DeleteResourceInput, optFns ...func(*Options)) (*DeleteResourceOutput, error)
Deletes a Resource resource.
func (*Client) DeleteRestApi ¶
func (c *Client) DeleteRestApi(ctx context.Context, params *DeleteRestApiInput, optFns ...func(*Options)) (*DeleteRestApiOutput, error)
Deletes the specified API.
func (*Client) DeleteStage ¶
func (c *Client) DeleteStage(ctx context.Context, params *DeleteStageInput, optFns ...func(*Options)) (*DeleteStageOutput, error)
Deletes a Stage resource.
func (*Client) DeleteUsagePlan ¶
func (c *Client) DeleteUsagePlan(ctx context.Context, params *DeleteUsagePlanInput, optFns ...func(*Options)) (*DeleteUsagePlanOutput, error)
Deletes a usage plan of a given plan Id.
func (*Client) DeleteUsagePlanKey ¶
func (c *Client) DeleteUsagePlanKey(ctx context.Context, params *DeleteUsagePlanKeyInput, optFns ...func(*Options)) (*DeleteUsagePlanKeyOutput, error)
Deletes a usage plan key and remove the underlying API key from the associated usage plan.
func (*Client) DeleteVpcLink ¶
func (c *Client) DeleteVpcLink(ctx context.Context, params *DeleteVpcLinkInput, optFns ...func(*Options)) (*DeleteVpcLinkOutput, error)
Deletes an existing VpcLink of a specified identifier.
func (*Client) FlushStageAuthorizersCache ¶
func (c *Client) FlushStageAuthorizersCache(ctx context.Context, params *FlushStageAuthorizersCacheInput, optFns ...func(*Options)) (*FlushStageAuthorizersCacheOutput, error)
Flushes all authorizer cache entries on a stage.
func (*Client) FlushStageCache ¶
func (c *Client) FlushStageCache(ctx context.Context, params *FlushStageCacheInput, optFns ...func(*Options)) (*FlushStageCacheOutput, error)
Flushes a stage's cache.
func (*Client) GenerateClientCertificate ¶
func (c *Client) GenerateClientCertificate(ctx context.Context, params *GenerateClientCertificateInput, optFns ...func(*Options)) (*GenerateClientCertificateOutput, error)
Generates a ClientCertificate resource.
func (*Client) GetAccount ¶
func (c *Client) GetAccount(ctx context.Context, params *GetAccountInput, optFns ...func(*Options)) (*GetAccountOutput, error)
Gets information about the current Account resource.
func (*Client) GetApiKey ¶
func (c *Client) GetApiKey(ctx context.Context, params *GetApiKeyInput, optFns ...func(*Options)) (*GetApiKeyOutput, error)
Gets information about the current ApiKey resource.
func (*Client) GetApiKeys ¶
func (c *Client) GetApiKeys(ctx context.Context, params *GetApiKeysInput, optFns ...func(*Options)) (*GetApiKeysOutput, error)
Gets information about the current ApiKeys resource.
func (*Client) GetAuthorizer ¶
func (c *Client) GetAuthorizer(ctx context.Context, params *GetAuthorizerInput, optFns ...func(*Options)) (*GetAuthorizerOutput, error)
Describe an existing Authorizer resource.
func (*Client) GetAuthorizers ¶
func (c *Client) GetAuthorizers(ctx context.Context, params *GetAuthorizersInput, optFns ...func(*Options)) (*GetAuthorizersOutput, error)
Describe an existing Authorizers resource.
func (*Client) GetBasePathMapping ¶
func (c *Client) GetBasePathMapping(ctx context.Context, params *GetBasePathMappingInput, optFns ...func(*Options)) (*GetBasePathMappingOutput, error)
Describe a BasePathMapping resource.
func (*Client) GetBasePathMappings ¶
func (c *Client) GetBasePathMappings(ctx context.Context, params *GetBasePathMappingsInput, optFns ...func(*Options)) (*GetBasePathMappingsOutput, error)
Represents a collection of BasePathMapping resources.
func (*Client) GetClientCertificate ¶
func (c *Client) GetClientCertificate(ctx context.Context, params *GetClientCertificateInput, optFns ...func(*Options)) (*GetClientCertificateOutput, error)
Gets information about the current ClientCertificate resource.
func (*Client) GetClientCertificates ¶
func (c *Client) GetClientCertificates(ctx context.Context, params *GetClientCertificatesInput, optFns ...func(*Options)) (*GetClientCertificatesOutput, error)
Gets a collection of ClientCertificate resources.
func (*Client) GetDeployment ¶
func (c *Client) GetDeployment(ctx context.Context, params *GetDeploymentInput, optFns ...func(*Options)) (*GetDeploymentOutput, error)
Gets information about a Deployment resource.
func (*Client) GetDeployments ¶
func (c *Client) GetDeployments(ctx context.Context, params *GetDeploymentsInput, optFns ...func(*Options)) (*GetDeploymentsOutput, error)
Gets information about a Deployments collection.
func (*Client) GetDocumentationPart ¶
func (c *Client) GetDocumentationPart(ctx context.Context, params *GetDocumentationPartInput, optFns ...func(*Options)) (*GetDocumentationPartOutput, error)
Gets a documentation part.
func (*Client) GetDocumentationParts ¶
func (c *Client) GetDocumentationParts(ctx context.Context, params *GetDocumentationPartsInput, optFns ...func(*Options)) (*GetDocumentationPartsOutput, error)
Gets documentation parts.
func (*Client) GetDocumentationVersion ¶
func (c *Client) GetDocumentationVersion(ctx context.Context, params *GetDocumentationVersionInput, optFns ...func(*Options)) (*GetDocumentationVersionOutput, error)
Gets a documentation version.
func (*Client) GetDocumentationVersions ¶
func (c *Client) GetDocumentationVersions(ctx context.Context, params *GetDocumentationVersionsInput, optFns ...func(*Options)) (*GetDocumentationVersionsOutput, error)
Gets documentation versions.
func (*Client) GetDomainName ¶
func (c *Client) GetDomainName(ctx context.Context, params *GetDomainNameInput, optFns ...func(*Options)) (*GetDomainNameOutput, error)
Represents a domain name that is contained in a simpler, more intuitive URL that can be called.
func (*Client) GetDomainNameAccessAssociations ¶ added in v1.28.0
func (c *Client) GetDomainNameAccessAssociations(ctx context.Context, params *GetDomainNameAccessAssociationsInput, optFns ...func(*Options)) (*GetDomainNameAccessAssociationsOutput, error)
Represents a collection on DomainNameAccessAssociations resources.
func (*Client) GetDomainNames ¶
func (c *Client) GetDomainNames(ctx context.Context, params *GetDomainNamesInput, optFns ...func(*Options)) (*GetDomainNamesOutput, error)
Represents a collection of DomainName resources.
func (*Client) GetExport ¶
func (c *Client) GetExport(ctx context.Context, params *GetExportInput, optFns ...func(*Options)) (*GetExportOutput, error)
Exports a deployed version of a RestApi in a specified format.
func (*Client) GetGatewayResponse ¶
func (c *Client) GetGatewayResponse(ctx context.Context, params *GetGatewayResponseInput, optFns ...func(*Options)) (*GetGatewayResponseOutput, error)
Gets a GatewayResponse of a specified response type on the given RestApi.
func (*Client) GetGatewayResponses ¶
func (c *Client) GetGatewayResponses(ctx context.Context, params *GetGatewayResponsesInput, optFns ...func(*Options)) (*GetGatewayResponsesOutput, error)
Gets the GatewayResponses collection on the given RestApi. If an API developer has not added any definitions for gateway responses, the result will be the API Gateway-generated default GatewayResponses collection for the supported response types.
func (*Client) GetIntegration ¶
func (c *Client) GetIntegration(ctx context.Context, params *GetIntegrationInput, optFns ...func(*Options)) (*GetIntegrationOutput, error)
Get the integration settings.
func (*Client) GetIntegrationResponse ¶
func (c *Client) GetIntegrationResponse(ctx context.Context, params *GetIntegrationResponseInput, optFns ...func(*Options)) (*GetIntegrationResponseOutput, error)
Represents a get integration response.
func (*Client) GetMethod ¶
func (c *Client) GetMethod(ctx context.Context, params *GetMethodInput, optFns ...func(*Options)) (*GetMethodOutput, error)
Describe an existing Method resource.
func (*Client) GetMethodResponse ¶
func (c *Client) GetMethodResponse(ctx context.Context, params *GetMethodResponseInput, optFns ...func(*Options)) (*GetMethodResponseOutput, error)
Describes a MethodResponse resource.
func (*Client) GetModel ¶
func (c *Client) GetModel(ctx context.Context, params *GetModelInput, optFns ...func(*Options)) (*GetModelOutput, error)
Describes an existing model defined for a RestApi resource.
func (*Client) GetModelTemplate ¶
func (c *Client) GetModelTemplate(ctx context.Context, params *GetModelTemplateInput, optFns ...func(*Options)) (*GetModelTemplateOutput, error)
Generates a sample mapping template that can be used to transform a payload into the structure of a model.
func (*Client) GetModels ¶
func (c *Client) GetModels(ctx context.Context, params *GetModelsInput, optFns ...func(*Options)) (*GetModelsOutput, error)
Describes existing Models defined for a RestApi resource.
func (*Client) GetRequestValidator ¶
func (c *Client) GetRequestValidator(ctx context.Context, params *GetRequestValidatorInput, optFns ...func(*Options)) (*GetRequestValidatorOutput, error)
Gets a RequestValidator of a given RestApi.
func (*Client) GetRequestValidators ¶
func (c *Client) GetRequestValidators(ctx context.Context, params *GetRequestValidatorsInput, optFns ...func(*Options)) (*GetRequestValidatorsOutput, error)
Gets the RequestValidators collection of a given RestApi.
func (*Client) GetResource ¶
func (c *Client) GetResource(ctx context.Context, params *GetResourceInput, optFns ...func(*Options)) (*GetResourceOutput, error)
Lists information about a resource.
func (*Client) GetResources ¶
func (c *Client) GetResources(ctx context.Context, params *GetResourcesInput, optFns ...func(*Options)) (*GetResourcesOutput, error)
Lists information about a collection of Resource resources.
func (*Client) GetRestApi ¶
func (c *Client) GetRestApi(ctx context.Context, params *GetRestApiInput, optFns ...func(*Options)) (*GetRestApiOutput, error)
Lists the RestApi resource in the collection.
func (*Client) GetRestApis ¶
func (c *Client) GetRestApis(ctx context.Context, params *GetRestApisInput, optFns ...func(*Options)) (*GetRestApisOutput, error)
Lists the RestApis resources for your collection.
func (*Client) GetSdk ¶
func (c *Client) GetSdk(ctx context.Context, params *GetSdkInput, optFns ...func(*Options)) (*GetSdkOutput, error)
Generates a client SDK for a RestApi and Stage.
func (*Client) GetSdkType ¶
func (c *Client) GetSdkType(ctx context.Context, params *GetSdkTypeInput, optFns ...func(*Options)) (*GetSdkTypeOutput, error)
Gets an SDK type.
func (*Client) GetSdkTypes ¶
func (c *Client) GetSdkTypes(ctx context.Context, params *GetSdkTypesInput, optFns ...func(*Options)) (*GetSdkTypesOutput, error)
Gets SDK types
func (*Client) GetStage ¶
func (c *Client) GetStage(ctx context.Context, params *GetStageInput, optFns ...func(*Options)) (*GetStageOutput, error)
Gets information about a Stage resource.
func (*Client) GetStages ¶
func (c *Client) GetStages(ctx context.Context, params *GetStagesInput, optFns ...func(*Options)) (*GetStagesOutput, error)
Gets information about one or more Stage resources.
func (*Client) GetTags ¶
func (c *Client) GetTags(ctx context.Context, params *GetTagsInput, optFns ...func(*Options)) (*GetTagsOutput, error)
Gets the Tags collection for a given resource.
func (*Client) GetUsage ¶
func (c *Client) GetUsage(ctx context.Context, params *GetUsageInput, optFns ...func(*Options)) (*GetUsageOutput, error)
Gets the usage data of a usage plan in a specified time interval.
func (*Client) GetUsagePlan ¶
func (c *Client) GetUsagePlan(ctx context.Context, params *GetUsagePlanInput, optFns ...func(*Options)) (*GetUsagePlanOutput, error)
Gets a usage plan of a given plan identifier.
func (*Client) GetUsagePlanKey ¶
func (c *Client) GetUsagePlanKey(ctx context.Context, params *GetUsagePlanKeyInput, optFns ...func(*Options)) (*GetUsagePlanKeyOutput, error)
Gets a usage plan key of a given key identifier.
func (*Client) GetUsagePlanKeys ¶
func (c *Client) GetUsagePlanKeys(ctx context.Context, params *GetUsagePlanKeysInput, optFns ...func(*Options)) (*GetUsagePlanKeysOutput, error)
Gets all the usage plan keys representing the API keys added to a specified usage plan.
func (*Client) GetUsagePlans ¶
func (c *Client) GetUsagePlans(ctx context.Context, params *GetUsagePlansInput, optFns ...func(*Options)) (*GetUsagePlansOutput, error)
Gets all the usage plans of the caller's account.
func (*Client) GetVpcLink ¶
func (c *Client) GetVpcLink(ctx context.Context, params *GetVpcLinkInput, optFns ...func(*Options)) (*GetVpcLinkOutput, error)
Gets a specified VPC link under the caller's account in a region.
func (*Client) GetVpcLinks ¶
func (c *Client) GetVpcLinks(ctx context.Context, params *GetVpcLinksInput, optFns ...func(*Options)) (*GetVpcLinksOutput, error)
Gets the VpcLinks collection under the caller's account in a selected region.
func (*Client) ImportApiKeys ¶
func (c *Client) ImportApiKeys(ctx context.Context, params *ImportApiKeysInput, optFns ...func(*Options)) (*ImportApiKeysOutput, error)
Import API keys from an external source, such as a CSV-formatted file.
func (*Client) ImportDocumentationParts ¶
func (c *Client) ImportDocumentationParts(ctx context.Context, params *ImportDocumentationPartsInput, optFns ...func(*Options)) (*ImportDocumentationPartsOutput, error)
Imports documentation parts
func (*Client) ImportRestApi ¶
func (c *Client) ImportRestApi(ctx context.Context, params *ImportRestApiInput, optFns ...func(*Options)) (*ImportRestApiOutput, error)
A feature of the API Gateway control service for creating a new API from an external API definition file.
func (*Client) Options ¶ added in v1.21.0
Options returns a copy of the client configuration.
Callers SHOULD NOT perform mutations on any inner structures within client config. Config overrides should instead be made on a per-operation basis through functional options.
func (*Client) PutGatewayResponse ¶
func (c *Client) PutGatewayResponse(ctx context.Context, params *PutGatewayResponseInput, optFns ...func(*Options)) (*PutGatewayResponseOutput, error)
Creates a customization of a GatewayResponse of a specified response type and status code on the given RestApi.
func (*Client) PutIntegration ¶
func (c *Client) PutIntegration(ctx context.Context, params *PutIntegrationInput, optFns ...func(*Options)) (*PutIntegrationOutput, error)
Sets up a method's integration.
func (*Client) PutIntegrationResponse ¶
func (c *Client) PutIntegrationResponse(ctx context.Context, params *PutIntegrationResponseInput, optFns ...func(*Options)) (*PutIntegrationResponseOutput, error)
Represents a put integration.
func (*Client) PutMethod ¶
func (c *Client) PutMethod(ctx context.Context, params *PutMethodInput, optFns ...func(*Options)) (*PutMethodOutput, error)
Add a method to an existing Resource resource.
func (*Client) PutMethodResponse ¶
func (c *Client) PutMethodResponse(ctx context.Context, params *PutMethodResponseInput, optFns ...func(*Options)) (*PutMethodResponseOutput, error)
Adds a MethodResponse to an existing Method resource.
func (*Client) PutRestApi ¶
func (c *Client) PutRestApi(ctx context.Context, params *PutRestApiInput, optFns ...func(*Options)) (*PutRestApiOutput, error)
A feature of the API Gateway control service for updating an existing API with an input of external API definitions. The update can take the form of merging the supplied definition into the existing API or overwriting the existing API.
func (*Client) RejectDomainNameAccessAssociation ¶ added in v1.28.0
func (c *Client) RejectDomainNameAccessAssociation(ctx context.Context, params *RejectDomainNameAccessAssociationInput, optFns ...func(*Options)) (*RejectDomainNameAccessAssociationOutput, error)
Rejects a domain name access association with a private custom domain name.
To reject a domain name access association with an access association source in another AWS account, use this operation. To remove a domain name access association with an access association source in your own account, use the DeleteDomainNameAccessAssociation operation.
func (*Client) TagResource ¶
func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error)
Adds or updates a tag on a given resource.
func (*Client) TestInvokeAuthorizer ¶
func (c *Client) TestInvokeAuthorizer(ctx context.Context, params *TestInvokeAuthorizerInput, optFns ...func(*Options)) (*TestInvokeAuthorizerOutput, error)
Simulate the execution of an Authorizer in your RestApi with headers, parameters, and an incoming request body.
func (*Client) TestInvokeMethod ¶
func (c *Client) TestInvokeMethod(ctx context.Context, params *TestInvokeMethodInput, optFns ...func(*Options)) (*TestInvokeMethodOutput, error)
Simulate the invocation of a Method in your RestApi with headers, parameters, and an incoming request body.
func (*Client) UntagResource ¶
func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error)
Removes a tag from a given resource.
func (*Client) UpdateAccount ¶
func (c *Client) UpdateAccount(ctx context.Context, params *UpdateAccountInput, optFns ...func(*Options)) (*UpdateAccountOutput, error)
Changes information about the current Account resource.
func (*Client) UpdateApiKey ¶
func (c *Client) UpdateApiKey(ctx context.Context, params *UpdateApiKeyInput, optFns ...func(*Options)) (*UpdateApiKeyOutput, error)
Changes information about an ApiKey resource.
func (*Client) UpdateAuthorizer ¶
func (c *Client) UpdateAuthorizer(ctx context.Context, params *UpdateAuthorizerInput, optFns ...func(*Options)) (*UpdateAuthorizerOutput, error)
Updates an existing Authorizer resource.
func (*Client) UpdateBasePathMapping ¶
func (c *Client) UpdateBasePathMapping(ctx context.Context, params *UpdateBasePathMappingInput, optFns ...func(*Options)) (*UpdateBasePathMappingOutput, error)
Changes information about the BasePathMapping resource.
func (*Client) UpdateClientCertificate ¶
func (c *Client) UpdateClientCertificate(ctx context.Context, params *UpdateClientCertificateInput, optFns ...func(*Options)) (*UpdateClientCertificateOutput, error)
Changes information about an ClientCertificate resource.
func (*Client) UpdateDeployment ¶
func (c *Client) UpdateDeployment(ctx context.Context, params *UpdateDeploymentInput, optFns ...func(*Options)) (*UpdateDeploymentOutput, error)
Changes information about a Deployment resource.
func (*Client) UpdateDocumentationPart ¶
func (c *Client) UpdateDocumentationPart(ctx context.Context, params *UpdateDocumentationPartInput, optFns ...func(*Options)) (*UpdateDocumentationPartOutput, error)
Updates a documentation part.
func (*Client) UpdateDocumentationVersion ¶
func (c *Client) UpdateDocumentationVersion(ctx context.Context, params *UpdateDocumentationVersionInput, optFns ...func(*Options)) (*UpdateDocumentationVersionOutput, error)
Updates a documentation version.
func (*Client) UpdateDomainName ¶
func (c *Client) UpdateDomainName(ctx context.Context, params *UpdateDomainNameInput, optFns ...func(*Options)) (*UpdateDomainNameOutput, error)
Changes information about the DomainName resource.
func (*Client) UpdateGatewayResponse ¶
func (c *Client) UpdateGatewayResponse(ctx context.Context, params *UpdateGatewayResponseInput, optFns ...func(*Options)) (*UpdateGatewayResponseOutput, error)
Updates a GatewayResponse of a specified response type on the given RestApi.
func (*Client) UpdateIntegration ¶
func (c *Client) UpdateIntegration(ctx context.Context, params *UpdateIntegrationInput, optFns ...func(*Options)) (*UpdateIntegrationOutput, error)
Represents an update integration.
func (*Client) UpdateIntegrationResponse ¶
func (c *Client) UpdateIntegrationResponse(ctx context.Context, params *UpdateIntegrationResponseInput, optFns ...func(*Options)) (*UpdateIntegrationResponseOutput, error)
Represents an update integration response.
func (*Client) UpdateMethod ¶
func (c *Client) UpdateMethod(ctx context.Context, params *UpdateMethodInput, optFns ...func(*Options)) (*UpdateMethodOutput, error)
Updates an existing Method resource.
func (*Client) UpdateMethodResponse ¶
func (c *Client) UpdateMethodResponse(ctx context.Context, params *UpdateMethodResponseInput, optFns ...func(*Options)) (*UpdateMethodResponseOutput, error)
Updates an existing MethodResponse resource.
func (*Client) UpdateModel ¶
func (c *Client) UpdateModel(ctx context.Context, params *UpdateModelInput, optFns ...func(*Options)) (*UpdateModelOutput, error)
Changes information about a model. The maximum size of the model is 400 KB.
func (*Client) UpdateRequestValidator ¶
func (c *Client) UpdateRequestValidator(ctx context.Context, params *UpdateRequestValidatorInput, optFns ...func(*Options)) (*UpdateRequestValidatorOutput, error)
Updates a RequestValidator of a given RestApi.
func (*Client) UpdateResource ¶
func (c *Client) UpdateResource(ctx context.Context, params *UpdateResourceInput, optFns ...func(*Options)) (*UpdateResourceOutput, error)
Changes information about a Resource resource.
func (*Client) UpdateRestApi ¶
func (c *Client) UpdateRestApi(ctx context.Context, params *UpdateRestApiInput, optFns ...func(*Options)) (*UpdateRestApiOutput, error)
Changes information about the specified API.
func (*Client) UpdateStage ¶
func (c *Client) UpdateStage(ctx context.Context, params *UpdateStageInput, optFns ...func(*Options)) (*UpdateStageOutput, error)
Changes information about a Stage resource.
func (*Client) UpdateUsage ¶
func (c *Client) UpdateUsage(ctx context.Context, params *UpdateUsageInput, optFns ...func(*Options)) (*UpdateUsageOutput, error)
Grants a temporary extension to the remaining quota of a usage plan associated with a specified API key.
func (*Client) UpdateUsagePlan ¶
func (c *Client) UpdateUsagePlan(ctx context.Context, params *UpdateUsagePlanInput, optFns ...func(*Options)) (*UpdateUsagePlanOutput, error)
Updates a usage plan of a given plan Id.
func (*Client) UpdateVpcLink ¶
func (c *Client) UpdateVpcLink(ctx context.Context, params *UpdateVpcLinkInput, optFns ...func(*Options)) (*UpdateVpcLinkOutput, error)
Updates an existing VpcLink of a specified identifier.
type CreateApiKeyInput ¶
type CreateApiKeyInput struct { // An Amazon Web Services Marketplace customer identifier, when integrating with // the Amazon Web Services SaaS Marketplace. CustomerId *string // The description of the ApiKey. Description *string // Specifies whether the ApiKey can be used by callers. Enabled bool // Specifies whether ( true ) or not ( false ) the key identifier is distinct from // the created API key value. This parameter is deprecated and should not be used. GenerateDistinctId bool // The name of the ApiKey. Name *string // DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key. StageKeys []types.StageKey // The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The // tag key can be up to 128 characters and must not start with aws: . The tag value // can be up to 256 characters. Tags map[string]string // Specifies a value of the API key. Value *string // contains filtered or unexported fields }
Request to create an ApiKey resource.
type CreateApiKeyOutput ¶
type CreateApiKeyOutput struct { // The timestamp when the API Key was created. CreatedDate *time.Time // An Amazon Web Services Marketplace customer identifier, when integrating with // the Amazon Web Services SaaS Marketplace. CustomerId *string // The description of the API Key. Description *string // Specifies whether the API Key can be used by callers. Enabled bool // The identifier of the API Key. Id *string // The timestamp when the API Key was last updated. LastUpdatedDate *time.Time // The name of the API Key. Name *string // A list of Stage resources that are associated with the ApiKey resource. StageKeys []string // The collection of tags. Each tag element is associated with a given resource. Tags map[string]string // The value of the API Key. Value *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
A resource that can be distributed to callers for executing Method resources that require an API key. API keys can be mapped to any Stage on any RestApi, which indicates that the callers with the API key can make requests to that stage.
type CreateAuthorizerInput ¶
type CreateAuthorizerInput struct { // The name of the authorizer. // // This member is required. Name *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // The authorizer type. Valid values are TOKEN for a Lambda function using a // single authorization token submitted in a custom header, REQUEST for a Lambda // function using incoming request parameters, and COGNITO_USER_POOLS for using an // Amazon Cognito user pool. // // This member is required. Type types.AuthorizerType // Optional customer-defined field, used in OpenAPI imports and exports without // functional impact. AuthType *string // Specifies the required credentials as an IAM role for API Gateway to invoke the // authorizer. To specify an IAM role for API Gateway to assume, use the role's // Amazon Resource Name (ARN). To use resource-based permissions on the Lambda // function, specify null. AuthorizerCredentials *string // The TTL in seconds of cached authorizer results. If it equals 0, authorization // caching is disabled. If it is greater than 0, API Gateway will cache authorizer // responses. If this field is not set, the default value is 300. The maximum value // is 3600, or 1 hour. AuthorizerResultTtlInSeconds *int32 // Specifies the authorizer's Uniform Resource Identifier (URI). For TOKEN or // REQUEST authorizers, this must be a well-formed Lambda function URI, for // example, // arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:{account_id}:function:{lambda_function_name}/invocations // . In general, the URI has this form // arn:aws:apigateway:{region}:lambda:path/{service_api} , where {region} is the // same as the region hosting the Lambda function, path indicates that the // remaining substring in the URI should be treated as the path to the resource, // including the initial / . For Lambda functions, this is usually of the form // /2015-03-31/functions/[FunctionARN]/invocations . AuthorizerUri *string // The identity source for which authorization is requested. For a TOKEN or // COGNITO_USER_POOLS authorizer, this is required and specifies the request header // mapping expression for the custom header holding the authorization token // submitted by the client. For example, if the token header name is Auth , the // header mapping expression is method.request.header.Auth . For the REQUEST // authorizer, this is required when authorization caching is enabled. The value is // a comma-separated string of one or more mapping expressions of the specified // request parameters. For example, if an Auth header, a Name query string // parameter are defined as identity sources, this value is // method.request.header.Auth, method.request.querystring.Name . These parameters // will be used to derive the authorization caching key and to perform runtime // validation of the REQUEST authorizer by verifying all of the identity-related // request parameters are present, not null and non-empty. Only when this is true // does the authorizer invoke the authorizer Lambda function, otherwise, it returns // a 401 Unauthorized response without calling the Lambda function. The valid value // is a string of comma-separated mapping expressions of the specified request // parameters. When the authorization caching is not enabled, this property is // optional. IdentitySource *string // A validation expression for the incoming identity token. For TOKEN authorizers, // this value is a regular expression. For COGNITO_USER_POOLS authorizers, API // Gateway will match the aud field of the incoming token from the client against // the specified regular expression. It will invoke the authorizer's Lambda // function when there is a match. Otherwise, it will return a 401 Unauthorized // response without calling the Lambda function. The validation expression does not // apply to the REQUEST authorizer. IdentityValidationExpression *string // A list of the Amazon Cognito user pool ARNs for the COGNITO_USER_POOLS // authorizer. Each element is of this format: // arn:aws:cognito-idp:{region}:{account_id}:userpool/{user_pool_id} . For a TOKEN // or REQUEST authorizer, this is not defined. ProviderARNs []string // contains filtered or unexported fields }
Request to add a new Authorizer to an existing RestApi resource.
type CreateAuthorizerOutput ¶
type CreateAuthorizerOutput struct { // Optional customer-defined field, used in OpenAPI imports and exports without // functional impact. AuthType *string // Specifies the required credentials as an IAM role for API Gateway to invoke the // authorizer. To specify an IAM role for API Gateway to assume, use the role's // Amazon Resource Name (ARN). To use resource-based permissions on the Lambda // function, specify null. AuthorizerCredentials *string // The TTL in seconds of cached authorizer results. If it equals 0, authorization // caching is disabled. If it is greater than 0, API Gateway will cache authorizer // responses. If this field is not set, the default value is 300. The maximum value // is 3600, or 1 hour. AuthorizerResultTtlInSeconds *int32 // Specifies the authorizer's Uniform Resource Identifier (URI). For TOKEN or // REQUEST authorizers, this must be a well-formed Lambda function URI, for // example, // arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:{account_id}:function:{lambda_function_name}/invocations // . In general, the URI has this form // arn:aws:apigateway:{region}:lambda:path/{service_api} , where {region} is the // same as the region hosting the Lambda function, path indicates that the // remaining substring in the URI should be treated as the path to the resource, // including the initial / . For Lambda functions, this is usually of the form // /2015-03-31/functions/[FunctionARN]/invocations . AuthorizerUri *string // The identifier for the authorizer resource. Id *string // The identity source for which authorization is requested. For a TOKEN or // COGNITO_USER_POOLS authorizer, this is required and specifies the request header // mapping expression for the custom header holding the authorization token // submitted by the client. For example, if the token header name is Auth , the // header mapping expression is method.request.header.Auth . For the REQUEST // authorizer, this is required when authorization caching is enabled. The value is // a comma-separated string of one or more mapping expressions of the specified // request parameters. For example, if an Auth header, a Name query string // parameter are defined as identity sources, this value is // method.request.header.Auth , method.request.querystring.Name . These parameters // will be used to derive the authorization caching key and to perform runtime // validation of the REQUEST authorizer by verifying all of the identity-related // request parameters are present, not null and non-empty. Only when this is true // does the authorizer invoke the authorizer Lambda function, otherwise, it returns // a 401 Unauthorized response without calling the Lambda function. The valid value // is a string of comma-separated mapping expressions of the specified request // parameters. When the authorization caching is not enabled, this property is // optional. IdentitySource *string // A validation expression for the incoming identity token. For TOKEN authorizers, // this value is a regular expression. For COGNITO_USER_POOLS authorizers, API // Gateway will match the aud field of the incoming token from the client against // the specified regular expression. It will invoke the authorizer's Lambda // function when there is a match. Otherwise, it will return a 401 Unauthorized // response without calling the Lambda function. The validation expression does not // apply to the REQUEST authorizer. IdentityValidationExpression *string // The name of the authorizer. Name *string // A list of the Amazon Cognito user pool ARNs for the COGNITO_USER_POOLS // authorizer. Each element is of this format: // arn:aws:cognito-idp:{region}:{account_id}:userpool/{user_pool_id} . For a TOKEN // or REQUEST authorizer, this is not defined. ProviderARNs []string // The authorizer type. Valid values are TOKEN for a Lambda function using a // single authorization token submitted in a custom header, REQUEST for a Lambda // function using incoming request parameters, and COGNITO_USER_POOLS for using an // Amazon Cognito user pool. Type types.AuthorizerType // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents an authorization layer for methods. If enabled on a method, API Gateway will activate the authorizer when a client calls the method.
type CreateBasePathMappingInput ¶
type CreateBasePathMappingInput struct { // The domain name of the BasePathMapping resource to create. // // This member is required. DomainName *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // The base path name that callers of the API must provide as part of the URL // after the domain name. This value must be unique for all of the mappings across // a single API. Specify '(none)' if you do not want callers to specify a base path // name after the domain name. BasePath *string // The identifier for the domain name resource. Required for private custom domain // names. DomainNameId *string // The name of the API's stage that you want to use for this mapping. Specify // '(none)' if you want callers to explicitly specify the stage name after any base // path name. Stage *string // contains filtered or unexported fields }
Requests API Gateway to create a new BasePathMapping resource.
type CreateBasePathMappingOutput ¶
type CreateBasePathMappingOutput struct { // The base path name that callers of the API must provide as part of the URL // after the domain name. BasePath *string // The string identifier of the associated RestApi. RestApiId *string // The name of the associated stage. Stage *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents the base path that callers of the API must provide as part of the URL after the domain name.
type CreateDeploymentInput ¶
type CreateDeploymentInput struct { // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // Enables a cache cluster for the Stage resource specified in the input. CacheClusterEnabled *bool // The stage's cache capacity in GB. For more information about choosing a cache // size, see [Enabling API caching to enhance responsiveness]. // // [Enabling API caching to enhance responsiveness]: https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-caching.html CacheClusterSize types.CacheClusterSize // The input configuration for the canary deployment when the deployment is a // canary release deployment. CanarySettings *types.DeploymentCanarySettings // The description for the Deployment resource to create. Description *string // The description of the Stage resource for the Deployment resource to create. StageDescription *string // The name of the Stage resource for the Deployment resource to create. StageName *string // Specifies whether active tracing with X-ray is enabled for the Stage. TracingEnabled *bool // A map that defines the stage variables for the Stage resource that is // associated with the new deployment. Variable names can have alphanumeric and // underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+ . Variables map[string]string // contains filtered or unexported fields }
Requests API Gateway to create a Deployment resource.
type CreateDeploymentOutput ¶
type CreateDeploymentOutput struct { // A summary of the RestApi at the date and time that the deployment resource was // created. ApiSummary map[string]map[string]types.MethodSnapshot // The date and time that the deployment resource was created. CreatedDate *time.Time // The description for the deployment resource. Description *string // The identifier for the deployment resource. Id *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
An immutable representation of a RestApi resource that can be called by users using Stages. A deployment must be associated with a Stage for it to be callable over the Internet.
type CreateDocumentationPartInput ¶
type CreateDocumentationPartInput struct { // The location of the targeted API entity of the to-be-created documentation part. // // This member is required. Location *types.DocumentationPartLocation // The new documentation content map of the targeted API entity. Enclosed // key-value pairs are API-specific, but only OpenAPI-compliant key-value pairs can // be exported and, hence, published. // // This member is required. Properties *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // contains filtered or unexported fields }
Creates a new documentation part of a given API.
type CreateDocumentationPartOutput ¶
type CreateDocumentationPartOutput struct { // The DocumentationPart identifier, generated by API Gateway when the // DocumentationPart is created. Id *string // The location of the API entity to which the documentation applies. Valid fields // depend on the targeted API entity type. All the valid location fields are not // required. If not explicitly specified, a valid location field is treated as a // wildcard and associated documentation content may be inherited by matching // entities, unless overridden. Location *types.DocumentationPartLocation // A content map of API-specific key-value pairs describing the targeted API // entity. The map must be encoded as a JSON string, e.g., "{ \"description\": // \"The API does ...\" }" . Only OpenAPI-compliant documentation-related fields // from the properties map are exported and, hence, published as part of the API // entity definitions, while the original documentation parts are exported in a // OpenAPI extension of x-amazon-apigateway-documentation . Properties *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
A documentation part for a targeted API entity.
type CreateDocumentationVersionInput ¶
type CreateDocumentationVersionInput struct { // The version identifier of the new snapshot. // // This member is required. DocumentationVersion *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // A description about the new documentation snapshot. Description *string // The stage name to be associated with the new documentation snapshot. StageName *string // contains filtered or unexported fields }
Creates a new documentation version of a given API.
type CreateDocumentationVersionOutput ¶
type CreateDocumentationVersionOutput struct { // The date when the API documentation snapshot is created. CreatedDate *time.Time // The description of the API documentation snapshot. Description *string // The version identifier of the API documentation snapshot. Version *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
A snapshot of the documentation of an API.
type CreateDomainNameAccessAssociationInput ¶ added in v1.28.0
type CreateDomainNameAccessAssociationInput struct { // The identifier of the domain name access association source. For a VPCE, the // value is the VPC endpoint ID. // // This member is required. AccessAssociationSource *string // The type of the domain name access association source. // // This member is required. AccessAssociationSourceType types.AccessAssociationSourceType // The ARN of the domain name. // // This member is required. DomainNameArn *string // The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The // tag key can be up to 128 characters and must not start with aws: . The tag value // can be up to 256 characters. Tags map[string]string // contains filtered or unexported fields }
type CreateDomainNameAccessAssociationOutput ¶ added in v1.28.0
type CreateDomainNameAccessAssociationOutput struct { // The ARN of the domain name access association source. For a VPCE, the ARN must // be a VPC endpoint. AccessAssociationSource *string // The type of the domain name access association source. AccessAssociationSourceType types.AccessAssociationSourceType // The ARN of the domain name access association resource. DomainNameAccessAssociationArn *string // The ARN of the domain name. DomainNameArn *string // The collection of tags. Each tag element is associated with a given resource. Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents a domain name access association between an access association source and a private custom domain name. With a domain name access association, an access association source can invoke a private custom domain name while isolated from the public internet.
type CreateDomainNameInput ¶
type CreateDomainNameInput struct { // The name of the DomainName resource. // // This member is required. DomainName *string // The reference to an Amazon Web Services-managed certificate that will be used // by edge-optimized endpoint or private endpoint for this domain name. Certificate // Manager is the only supported source. CertificateArn *string // [Deprecated] The body of the server certificate that will be used by // edge-optimized endpoint or private endpoint for this domain name provided by // your certificate authority. CertificateBody *string // [Deprecated] The intermediate certificates and optionally the root certificate, // one after the other without any blank lines, used by an edge-optimized endpoint // for this domain name. If you include the root certificate, your certificate // chain must start with intermediate certificates and end with the root // certificate. Use the intermediate certificates that were provided by your // certificate authority. Do not include any intermediaries that are not in the // chain of trust path. CertificateChain *string // The user-friendly name of the certificate that will be used by edge-optimized // endpoint or private endpoint for this domain name. CertificateName *string // [Deprecated] Your edge-optimized endpoint's domain name certificate's private // key. CertificatePrivateKey *string // The endpoint configuration of this DomainName showing the endpoint types of the // domain name. EndpointConfiguration *types.EndpointConfiguration // The mutual TLS authentication configuration for a custom domain name. If // specified, API Gateway performs two-way authentication between the client and // the server. Clients must present a trusted certificate to access your API. MutualTlsAuthentication *types.MutualTlsAuthenticationInput // The ARN of the public certificate issued by ACM to validate ownership of your // custom domain. Only required when configuring mutual TLS and using an ACM // imported or private CA certificate ARN as the regionalCertificateArn. OwnershipVerificationCertificateArn *string // A stringified JSON policy document that applies to the execute-api service for // this DomainName regardless of the caller and Method configuration. Supported // only for private custom domain names. Policy *string // The reference to an Amazon Web Services-managed certificate that will be used // by regional endpoint for this domain name. Certificate Manager is the only // supported source. RegionalCertificateArn *string // The user-friendly name of the certificate that will be used by regional // endpoint for this domain name. RegionalCertificateName *string // The Transport Layer Security (TLS) version + cipher suite for this DomainName. // The valid values are TLS_1_0 and TLS_1_2 . SecurityPolicy types.SecurityPolicy // The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The // tag key can be up to 128 characters and must not start with aws: . The tag value // can be up to 256 characters. Tags map[string]string // contains filtered or unexported fields }
A request to create a new domain name.
type CreateDomainNameOutput ¶
type CreateDomainNameOutput struct { // The reference to an Amazon Web Services-managed certificate that will be used // by edge-optimized endpoint or private endpoint for this domain name. Certificate // Manager is the only supported source. CertificateArn *string // The name of the certificate that will be used by edge-optimized endpoint or // private endpoint for this domain name. CertificateName *string // The timestamp when the certificate that was used by edge-optimized endpoint or // private endpoint for this domain name was uploaded. CertificateUploadDate *time.Time // The domain name of the Amazon CloudFront distribution associated with this // custom domain name for an edge-optimized endpoint. You set up this association // when adding a DNS record pointing the custom domain name to this distribution // name. For more information about CloudFront distributions, see the Amazon // CloudFront documentation. DistributionDomainName *string // The region-agnostic Amazon Route 53 Hosted Zone ID of the edge-optimized // endpoint. The valid value is Z2FDTNDATAQYW2 for all the regions. For more // information, see Set up a Regional Custom Domain Name and AWS Regions and // Endpoints for API Gateway. DistributionHostedZoneId *string // The custom domain name as an API host name, for example, my-api.example.com . DomainName *string // The ARN of the domain name. Supported only for private custom domain names. DomainNameArn *string // The identifier for the domain name resource. Supported only for private custom // domain names. DomainNameId *string // The status of the DomainName migration. The valid values are AVAILABLE and // UPDATING . If the status is UPDATING , the domain cannot be modified further // until the existing operation is complete. If it is AVAILABLE , the domain can be // updated. DomainNameStatus types.DomainNameStatus // An optional text message containing detailed information about status of the // DomainName migration. DomainNameStatusMessage *string // The endpoint configuration of this DomainName showing the endpoint types of the // domain name. EndpointConfiguration *types.EndpointConfiguration // A stringified JSON policy document that applies to the API Gateway Management // service for this DomainName. This policy document controls access for access // association sources to create domain name access associations with this // DomainName. Supported only for private custom domain names. ManagementPolicy *string // The mutual TLS authentication configuration for a custom domain name. If // specified, API Gateway performs two-way authentication between the client and // the server. Clients must present a trusted certificate to access your API. MutualTlsAuthentication *types.MutualTlsAuthentication // The ARN of the public certificate issued by ACM to validate ownership of your // custom domain. Only required when configuring mutual TLS and using an ACM // imported or private CA certificate ARN as the regionalCertificateArn. OwnershipVerificationCertificateArn *string // A stringified JSON policy document that applies to the execute-api service for // this DomainName regardless of the caller and Method configuration. Supported // only for private custom domain names. Policy *string // The reference to an Amazon Web Services-managed certificate that will be used // for validating the regional domain name. Certificate Manager is the only // supported source. RegionalCertificateArn *string // The name of the certificate that will be used for validating the regional // domain name. RegionalCertificateName *string // The domain name associated with the regional endpoint for this custom domain // name. You set up this association by adding a DNS record that points the custom // domain name to this regional domain name. The regional domain name is returned // by API Gateway when you create a regional endpoint. RegionalDomainName *string // The region-specific Amazon Route 53 Hosted Zone ID of the regional endpoint. // For more information, see Set up a Regional Custom Domain Name and AWS Regions // and Endpoints for API Gateway. RegionalHostedZoneId *string // The Transport Layer Security (TLS) version + cipher suite for this DomainName. // The valid values are TLS_1_0 and TLS_1_2 . SecurityPolicy types.SecurityPolicy // The collection of tags. Each tag element is associated with a given resource. Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents a custom domain name as a user-friendly host name of an API (RestApi).
type CreateModelInput ¶
type CreateModelInput struct { // The content-type for the model. // // This member is required. ContentType *string // The name of the model. Must be alphanumeric. // // This member is required. Name *string // The RestApi identifier under which the Model will be created. // // This member is required. RestApiId *string // The description of the model. Description *string // The schema for the model. For application/json models, this should be JSON // schema draft 4 model. The maximum size of the model is 400 KB. Schema *string // contains filtered or unexported fields }
Request to add a new Model to an existing RestApi resource.
type CreateModelOutput ¶
type CreateModelOutput struct { // The content-type for the model. ContentType *string // The description of the model. Description *string // The identifier for the model resource. Id *string // The name of the model. Must be an alphanumeric string. Name *string // The schema for the model. For application/json models, this should be JSON // schema draft 4 model. Do not include "\*/" characters in the description of any // properties because such "\*/" characters may be interpreted as the closing // marker for comments in some languages, such as Java or JavaScript, causing the // installation of your API's SDK generated by API Gateway to fail. Schema *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents the data structure of a method's request or response payload.
type CreateRequestValidatorInput ¶
type CreateRequestValidatorInput struct { // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // The name of the to-be-created RequestValidator. Name *string // A Boolean flag to indicate whether to validate request body according to the // configured model schema for the method ( true ) or not ( false ). ValidateRequestBody bool // A Boolean flag to indicate whether to validate request parameters, true , or not // false . ValidateRequestParameters bool // contains filtered or unexported fields }
Creates a RequestValidator of a given RestApi.
type CreateRequestValidatorOutput ¶
type CreateRequestValidatorOutput struct { // The identifier of this RequestValidator. Id *string // The name of this RequestValidator Name *string // A Boolean flag to indicate whether to validate a request body according to the // configured Model schema. ValidateRequestBody bool // A Boolean flag to indicate whether to validate request parameters ( true ) or // not ( false ). ValidateRequestParameters bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
A set of validation rules for incoming Method requests.
type CreateResourceInput ¶
type CreateResourceInput struct { // The parent resource's identifier. // // This member is required. ParentId *string // The last path segment for this resource. // // This member is required. PathPart *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // contains filtered or unexported fields }
Requests API Gateway to create a Resource resource.
type CreateResourceOutput ¶
type CreateResourceOutput struct { // The resource's identifier. Id *string // The parent resource's identifier. ParentId *string // The full path for this resource. Path *string // The last path segment for this resource. PathPart *string // Gets an API resource's method of a given HTTP verb. ResourceMethods map[string]types.Method // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents an API resource.
type CreateRestApiInput ¶
type CreateRestApiInput struct { // The name of the RestApi. // // This member is required. Name *string // The source of the API key for metering requests according to a usage plan. // Valid values are: HEADER to read the API key from the X-API-Key header of a // request. AUTHORIZER to read the API key from the UsageIdentifierKey from a // custom authorizer. ApiKeySource types.ApiKeySourceType // The list of binary media types supported by the RestApi. By default, the // RestApi supports only UTF-8-encoded text payloads. BinaryMediaTypes []string // The ID of the RestApi that you want to clone from. CloneFrom *string // The description of the RestApi. Description *string // Specifies whether clients can invoke your API by using the default execute-api // endpoint. By default, clients can invoke your API with the default // https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that // clients use a custom domain name to invoke your API, disable the default // endpoint DisableExecuteApiEndpoint bool // The endpoint configuration of this RestApi showing the endpoint types of the // API. EndpointConfiguration *types.EndpointConfiguration // A nullable integer that is used to enable compression (with non-negative // between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a // null value) on an API. When compression is enabled, compression or decompression // is not applied on the payload if the payload size is smaller than this value. // Setting it to zero allows compression for any payload size. MinimumCompressionSize *int32 // A stringified JSON policy document that applies to this RestApi regardless of // the caller and Method configuration. Policy *string // The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The // tag key can be up to 128 characters and must not start with aws: . The tag value // can be up to 256 characters. Tags map[string]string // A version identifier for the API. Version *string // contains filtered or unexported fields }
The POST Request to add a new RestApi resource to your collection.
type CreateRestApiOutput ¶
type CreateRestApiOutput struct { // The source of the API key for metering requests according to a usage plan. // Valid values are: > HEADER to read the API key from the X-API-Key header of a // request. AUTHORIZER to read the API key from the UsageIdentifierKey from a // custom authorizer. ApiKeySource types.ApiKeySourceType // The list of binary media types supported by the RestApi. By default, the // RestApi supports only UTF-8-encoded text payloads. BinaryMediaTypes []string // The timestamp when the API was created. CreatedDate *time.Time // The API's description. Description *string // Specifies whether clients can invoke your API by using the default execute-api // endpoint. By default, clients can invoke your API with the default // https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that // clients use a custom domain name to invoke your API, disable the default // endpoint. DisableExecuteApiEndpoint bool // The endpoint configuration of this RestApi showing the endpoint types of the // API. EndpointConfiguration *types.EndpointConfiguration // The API's identifier. This identifier is unique across all of your APIs in API // Gateway. Id *string // A nullable integer that is used to enable compression (with non-negative // between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a // null value) on an API. When compression is enabled, compression or decompression // is not applied on the payload if the payload size is smaller than this value. // Setting it to zero allows compression for any payload size. MinimumCompressionSize *int32 // The API's name. Name *string // A stringified JSON policy document that applies to this RestApi regardless of // the caller and Method configuration. Policy *string // The API's root resource ID. RootResourceId *string // The collection of tags. Each tag element is associated with a given resource. Tags map[string]string // A version identifier for the API. Version *string // The warning messages reported when failonwarnings is turned on during API // import. Warnings []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents a REST API.
type CreateStageInput ¶
type CreateStageInput struct { // The identifier of the Deployment resource for the Stage resource. // // This member is required. DeploymentId *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // The name for the Stage resource. Stage names can only contain alphanumeric // characters, hyphens, and underscores. Maximum length is 128 characters. // // This member is required. StageName *string // Whether cache clustering is enabled for the stage. CacheClusterEnabled bool // The stage's cache capacity in GB. For more information about choosing a cache // size, see [Enabling API caching to enhance responsiveness]. // // [Enabling API caching to enhance responsiveness]: https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-caching.html CacheClusterSize types.CacheClusterSize // The canary deployment settings of this stage. CanarySettings *types.CanarySettings // The description of the Stage resource. Description *string // The version of the associated API documentation. DocumentationVersion *string // The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The // tag key can be up to 128 characters and must not start with aws: . The tag value // can be up to 256 characters. Tags map[string]string // Specifies whether active tracing with X-ray is enabled for the Stage. TracingEnabled bool // A map that defines the stage variables for the new Stage resource. Variable // names can have alphanumeric and underscore characters, and the values must match // [A-Za-z0-9-._~:/?#&=,]+ . Variables map[string]string // contains filtered or unexported fields }
Requests API Gateway to create a Stage resource.
type CreateStageOutput ¶
type CreateStageOutput struct { // Settings for logging access in this stage. AccessLogSettings *types.AccessLogSettings // Specifies whether a cache cluster is enabled for the stage. To activate a // method-level cache, set CachingEnabled to true for a method. CacheClusterEnabled bool // The stage's cache capacity in GB. For more information about choosing a cache // size, see [Enabling API caching to enhance responsiveness]. // // [Enabling API caching to enhance responsiveness]: https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-caching.html CacheClusterSize types.CacheClusterSize // The status of the cache cluster for the stage, if enabled. CacheClusterStatus types.CacheClusterStatus // Settings for the canary deployment in this stage. CanarySettings *types.CanarySettings // The identifier of a client certificate for an API stage. ClientCertificateId *string // The timestamp when the stage was created. CreatedDate *time.Time // The identifier of the Deployment that the stage points to. DeploymentId *string // The stage's description. Description *string // The version of the associated API documentation. DocumentationVersion *string // The timestamp when the stage last updated. LastUpdatedDate *time.Time // A map that defines the method settings for a Stage resource. Keys (designated // as /{method_setting_key below) are method paths defined as // {resource_path}/{http_method} for an individual method override, or /\*/\* for // overriding all methods in the stage. MethodSettings map[string]types.MethodSetting // The name of the stage is the first path segment in the Uniform Resource // Identifier (URI) of a call to API Gateway. Stage names can only contain // alphanumeric characters, hyphens, and underscores. Maximum length is 128 // characters. StageName *string // The collection of tags. Each tag element is associated with a given resource. Tags map[string]string // Specifies whether active tracing with X-ray is enabled for the Stage. TracingEnabled bool // A map that defines the stage variables for a Stage resource. Variable names can // have alphanumeric and underscore characters, and the values must match // [A-Za-z0-9-._~:/?#&=,]+ . Variables map[string]string // The ARN of the WebAcl associated with the Stage. WebAclArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents a unique identifier for a version of a deployed RestApi that is callable by users.
type CreateUsagePlanInput ¶
type CreateUsagePlanInput struct { // The name of the usage plan. // // This member is required. Name *string // The associated API stages of the usage plan. ApiStages []types.ApiStage // The description of the usage plan. Description *string // The quota of the usage plan. Quota *types.QuotaSettings // The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The // tag key can be up to 128 characters and must not start with aws: . The tag value // can be up to 256 characters. Tags map[string]string // The throttling limits of the usage plan. Throttle *types.ThrottleSettings // contains filtered or unexported fields }
The POST request to create a usage plan with the name, description, throttle limits and quota limits, as well as the associated API stages, specified in the payload.
type CreateUsagePlanKeyInput ¶
type CreateUsagePlanKeyInput struct { // The identifier of a UsagePlanKey resource for a plan customer. // // This member is required. KeyId *string // The type of a UsagePlanKey resource for a plan customer. // // This member is required. KeyType *string // The Id of the UsagePlan resource representing the usage plan containing the // to-be-created UsagePlanKey resource representing a plan customer. // // This member is required. UsagePlanId *string // contains filtered or unexported fields }
The POST request to create a usage plan key for adding an existing API key to a usage plan.
type CreateUsagePlanKeyOutput ¶
type CreateUsagePlanKeyOutput struct { // The Id of a usage plan key. Id *string // The name of a usage plan key. Name *string // The type of a usage plan key. Currently, the valid key type is API_KEY . Type *string // The value of a usage plan key. Value *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents a usage plan key to identify a plan customer.
type CreateUsagePlanOutput ¶
type CreateUsagePlanOutput struct { // The associated API stages of a usage plan. ApiStages []types.ApiStage // The description of a usage plan. Description *string // The identifier of a UsagePlan resource. Id *string // The name of a usage plan. Name *string // The Amazon Web Services Marketplace product identifier to associate with the // usage plan as a SaaS product on the Amazon Web Services Marketplace. ProductCode *string // The target maximum number of permitted requests per a given unit time interval. Quota *types.QuotaSettings // The collection of tags. Each tag element is associated with a given resource. Tags map[string]string // A map containing method level throttling information for API stage in a usage // plan. Throttle *types.ThrottleSettings // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents a usage plan used to specify who can assess associated API stages. Optionally, target request rate and quota limits can be set. In some cases clients can exceed the targets that you set. Don’t rely on usage plans to control costs. Consider using Amazon Web Services Budgetsto monitor costs and WAF to manage API requests.
type CreateVpcLinkInput ¶
type CreateVpcLinkInput struct { // The name used to label and identify the VPC link. // // This member is required. Name *string // The ARN of the network load balancer of the VPC targeted by the VPC link. The // network load balancer must be owned by the same Amazon Web Services account of // the API owner. // // This member is required. TargetArns []string // The description of the VPC link. Description *string // The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The // tag key can be up to 128 characters and must not start with aws: . The tag value // can be up to 256 characters. Tags map[string]string // contains filtered or unexported fields }
Creates a VPC link, under the caller's account in a selected region, in an asynchronous operation that typically takes 2-4 minutes to complete and become operational. The caller must have permissions to create and update VPC Endpoint services.
type CreateVpcLinkOutput ¶
type CreateVpcLinkOutput struct { // The description of the VPC link. Description *string // The identifier of the VpcLink. It is used in an Integration to reference this // VpcLink. Id *string // The name used to label and identify the VPC link. Name *string // The status of the VPC link. The valid values are AVAILABLE , PENDING , DELETING // , or FAILED . Deploying an API will wait if the status is PENDING and will fail // if the status is DELETING . Status types.VpcLinkStatus // A description about the VPC link status. StatusMessage *string // The collection of tags. Each tag element is associated with a given resource. Tags map[string]string // The ARN of the network load balancer of the VPC targeted by the VPC link. The // network load balancer must be owned by the same Amazon Web Services account of // the API owner. TargetArns []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
An API Gateway VPC link for a RestApi to access resources in an Amazon Virtual Private Cloud (VPC).
type DeleteApiKeyInput ¶
type DeleteApiKeyInput struct { // The identifier of the ApiKey resource to be deleted. // // This member is required. ApiKey *string // contains filtered or unexported fields }
A request to delete the ApiKey resource.
type DeleteApiKeyOutput ¶
type DeleteApiKeyOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteAuthorizerInput ¶
type DeleteAuthorizerInput struct { // The identifier of the Authorizer resource. // // This member is required. AuthorizerId *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // contains filtered or unexported fields }
Request to delete an existing Authorizer resource.
type DeleteAuthorizerOutput ¶
type DeleteAuthorizerOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteBasePathMappingInput ¶
type DeleteBasePathMappingInput struct { // The base path name of the BasePathMapping resource to delete. // // To specify an empty base path, set this parameter to '(none)' . // // This member is required. BasePath *string // The domain name of the BasePathMapping resource to delete. // // This member is required. DomainName *string // The identifier for the domain name resource. Supported only for private custom // domain names. DomainNameId *string // contains filtered or unexported fields }
A request to delete the BasePathMapping resource.
type DeleteBasePathMappingOutput ¶
type DeleteBasePathMappingOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteClientCertificateInput ¶
type DeleteClientCertificateInput struct { // The identifier of the ClientCertificate resource to be deleted. // // This member is required. ClientCertificateId *string // contains filtered or unexported fields }
A request to delete the ClientCertificate resource.
type DeleteClientCertificateOutput ¶
type DeleteClientCertificateOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteDeploymentInput ¶
type DeleteDeploymentInput struct { // The identifier of the Deployment resource to delete. // // This member is required. DeploymentId *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // contains filtered or unexported fields }
Requests API Gateway to delete a Deployment resource.
type DeleteDeploymentOutput ¶
type DeleteDeploymentOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteDocumentationPartInput ¶
type DeleteDocumentationPartInput struct { // The identifier of the to-be-deleted documentation part. // // This member is required. DocumentationPartId *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // contains filtered or unexported fields }
Deletes an existing documentation part of an API.
type DeleteDocumentationPartOutput ¶
type DeleteDocumentationPartOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteDocumentationVersionInput ¶
type DeleteDocumentationVersionInput struct { // The version identifier of a to-be-deleted documentation snapshot. // // This member is required. DocumentationVersion *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // contains filtered or unexported fields }
Deletes an existing documentation version of an API.
type DeleteDocumentationVersionOutput ¶
type DeleteDocumentationVersionOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteDomainNameAccessAssociationInput ¶ added in v1.28.0
type DeleteDomainNameAccessAssociationInput struct { // The ARN of the domain name access association resource. // // This member is required. DomainNameAccessAssociationArn *string // contains filtered or unexported fields }
type DeleteDomainNameAccessAssociationOutput ¶ added in v1.28.0
type DeleteDomainNameAccessAssociationOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteDomainNameInput ¶
type DeleteDomainNameInput struct { // The name of the DomainName resource to be deleted. // // This member is required. DomainName *string // The identifier for the domain name resource. Supported only for private custom // domain names. DomainNameId *string // contains filtered or unexported fields }
A request to delete the DomainName resource.
type DeleteDomainNameOutput ¶
type DeleteDomainNameOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteGatewayResponseInput ¶
type DeleteGatewayResponseInput struct { // The response type of the associated GatewayResponse. // // This member is required. ResponseType types.GatewayResponseType // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // contains filtered or unexported fields }
Clears any customization of a GatewayResponse of a specified response type on the given RestApi and resets it with the default settings.
type DeleteGatewayResponseOutput ¶
type DeleteGatewayResponseOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteIntegrationInput ¶
type DeleteIntegrationInput struct { // Specifies a delete integration request's HTTP method. // // This member is required. HttpMethod *string // Specifies a delete integration request's resource identifier. // // This member is required. ResourceId *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // contains filtered or unexported fields }
Represents a delete integration request.
type DeleteIntegrationOutput ¶
type DeleteIntegrationOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteIntegrationResponseInput ¶
type DeleteIntegrationResponseInput struct { // Specifies a delete integration response request's HTTP method. // // This member is required. HttpMethod *string // Specifies a delete integration response request's resource identifier. // // This member is required. ResourceId *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // Specifies a delete integration response request's status code. // // This member is required. StatusCode *string // contains filtered or unexported fields }
Represents a delete integration response request.
type DeleteIntegrationResponseOutput ¶
type DeleteIntegrationResponseOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteMethodInput ¶
type DeleteMethodInput struct { // The HTTP verb of the Method resource. // // This member is required. HttpMethod *string // The Resource identifier for the Method resource. // // This member is required. ResourceId *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // contains filtered or unexported fields }
Request to delete an existing Method resource.
type DeleteMethodOutput ¶
type DeleteMethodOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteMethodResponseInput ¶
type DeleteMethodResponseInput struct { // The HTTP verb of the Method resource. // // This member is required. HttpMethod *string // The Resource identifier for the MethodResponse resource. // // This member is required. ResourceId *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // The status code identifier for the MethodResponse resource. // // This member is required. StatusCode *string // contains filtered or unexported fields }
A request to delete an existing MethodResponse resource.
type DeleteMethodResponseOutput ¶
type DeleteMethodResponseOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteModelInput ¶
type DeleteModelInput struct { // The name of the model to delete. // // This member is required. ModelName *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // contains filtered or unexported fields }
Request to delete an existing model in an existing RestApi resource.
type DeleteModelOutput ¶
type DeleteModelOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteRequestValidatorInput ¶
type DeleteRequestValidatorInput struct { // The identifier of the RequestValidator to be deleted. // // This member is required. RequestValidatorId *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // contains filtered or unexported fields }
Deletes a specified RequestValidator of a given RestApi.
type DeleteRequestValidatorOutput ¶
type DeleteRequestValidatorOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteResourceInput ¶
type DeleteResourceInput struct { // The identifier of the Resource resource. // // This member is required. ResourceId *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // contains filtered or unexported fields }
Request to delete a Resource.
type DeleteResourceOutput ¶
type DeleteResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteRestApiInput ¶
type DeleteRestApiInput struct { // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // contains filtered or unexported fields }
Request to delete the specified API from your collection.
type DeleteRestApiOutput ¶
type DeleteRestApiOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteStageInput ¶
type DeleteStageInput struct { // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // The name of the Stage resource to delete. // // This member is required. StageName *string // contains filtered or unexported fields }
Requests API Gateway to delete a Stage resource.
type DeleteStageOutput ¶
type DeleteStageOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteUsagePlanInput ¶
type DeleteUsagePlanInput struct { // The Id of the to-be-deleted usage plan. // // This member is required. UsagePlanId *string // contains filtered or unexported fields }
The DELETE request to delete a usage plan of a given plan Id.
type DeleteUsagePlanKeyInput ¶
type DeleteUsagePlanKeyInput struct { // The Id of the UsagePlanKey resource to be deleted. // // This member is required. KeyId *string // The Id of the UsagePlan resource representing the usage plan containing the // to-be-deleted UsagePlanKey resource representing a plan customer. // // This member is required. UsagePlanId *string // contains filtered or unexported fields }
The DELETE request to delete a usage plan key and remove the underlying API key from the associated usage plan.
type DeleteUsagePlanKeyOutput ¶
type DeleteUsagePlanKeyOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteUsagePlanOutput ¶
type DeleteUsagePlanOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteVpcLinkInput ¶
type DeleteVpcLinkInput struct { // The identifier of the VpcLink. It is used in an Integration to reference this // VpcLink. // // This member is required. VpcLinkId *string // contains filtered or unexported fields }
Deletes an existing VpcLink of a specified identifier.
type DeleteVpcLinkOutput ¶
type DeleteVpcLinkOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type EndpointParameters ¶ added in v1.17.0
type EndpointParameters struct { // The AWS region used to dispatch the request. // // Parameter is // required. // // AWS::Region Region *string // When true, use the dual-stack endpoint. If the configured endpoint does not // support dual-stack, dispatching the request MAY return an error. // // Defaults to // false if no value is provided. // // AWS::UseDualStack UseDualStack *bool // When true, send this request to the FIPS-compliant regional endpoint. If the // configured endpoint does not have a FIPS compliant endpoint, dispatching the // request will return an error. // // Defaults to false if no value is // provided. // // AWS::UseFIPS UseFIPS *bool // Override the endpoint used to send this request // // Parameter is // required. // // SDK::Endpoint Endpoint *string }
EndpointParameters provides the parameters that influence how endpoints are resolved.
func (EndpointParameters) ValidateRequired ¶ added in v1.17.0
func (p EndpointParameters) ValidateRequired() error
ValidateRequired validates required parameters are set.
func (EndpointParameters) WithDefaults ¶ added in v1.17.0
func (p EndpointParameters) WithDefaults() EndpointParameters
WithDefaults returns a shallow copy of EndpointParameterswith default values applied to members where applicable.
type EndpointResolver ¶
type EndpointResolver interface {
ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error)
}
EndpointResolver interface for resolving service endpoints.
func EndpointResolverFromURL ¶ added in v1.1.0
func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver
EndpointResolverFromURL returns an EndpointResolver configured using the provided endpoint url. By default, the resolved endpoint resolver uses the client region as signing region, and the endpoint source is set to EndpointSourceCustom.You can provide functional options to configure endpoint values for the resolved endpoint.
type EndpointResolverFunc ¶
type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error)
EndpointResolverFunc is a helper utility that wraps a function so it satisfies the EndpointResolver interface. This is useful when you want to add additional endpoint resolving logic, or stub out specific endpoints with custom values.
func (EndpointResolverFunc) ResolveEndpoint ¶
func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error)
type EndpointResolverOptions ¶ added in v0.29.0
type EndpointResolverOptions = internalendpoints.Options
EndpointResolverOptions is the service endpoint resolver options
type EndpointResolverV2 ¶ added in v1.17.0
type EndpointResolverV2 interface { // ResolveEndpoint attempts to resolve the endpoint with the provided options, // returning the endpoint if found. Otherwise an error is returned. ResolveEndpoint(ctx context.Context, params EndpointParameters) ( smithyendpoints.Endpoint, error, ) }
EndpointResolverV2 provides the interface for resolving service endpoints.
func NewDefaultEndpointResolverV2 ¶ added in v1.17.0
func NewDefaultEndpointResolverV2() EndpointResolverV2
type FlushStageAuthorizersCacheInput ¶
type FlushStageAuthorizersCacheInput struct { // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // The name of the stage to flush. // // This member is required. StageName *string // contains filtered or unexported fields }
Request to flush authorizer cache entries on a specified stage.
type FlushStageAuthorizersCacheOutput ¶
type FlushStageAuthorizersCacheOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type FlushStageCacheInput ¶
type FlushStageCacheInput struct { // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // The name of the stage to flush its cache. // // This member is required. StageName *string // contains filtered or unexported fields }
Requests API Gateway to flush a stage's cache.
type FlushStageCacheOutput ¶
type FlushStageCacheOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type GenerateClientCertificateInput ¶
type GenerateClientCertificateInput struct { // The description of the ClientCertificate. Description *string // The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The // tag key can be up to 128 characters and must not start with aws: . The tag value // can be up to 256 characters. Tags map[string]string // contains filtered or unexported fields }
A request to generate a ClientCertificate resource.
type GenerateClientCertificateOutput ¶
type GenerateClientCertificateOutput struct { // The identifier of the client certificate. ClientCertificateId *string // The timestamp when the client certificate was created. CreatedDate *time.Time // The description of the client certificate. Description *string // The timestamp when the client certificate will expire. ExpirationDate *time.Time // The PEM-encoded public key of the client certificate, which can be used to // configure certificate authentication in the integration endpoint . PemEncodedCertificate *string // The collection of tags. Each tag element is associated with a given resource. Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents a client certificate used to configure client-side SSL authentication while sending requests to the integration endpoint.
type GetAccountInput ¶
type GetAccountInput struct {
// contains filtered or unexported fields
}
Requests API Gateway to get information about the current Account resource.
type GetAccountOutput ¶
type GetAccountOutput struct { // The version of the API keys used for the account. ApiKeyVersion *string // The ARN of an Amazon CloudWatch role for the current Account. CloudwatchRoleArn *string // A list of features supported for the account. When usage plans are enabled, the // features list will include an entry of "UsagePlans" . Features []string // Specifies the API request limits configured for the current Account. ThrottleSettings *types.ThrottleSettings // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents an AWS account that is associated with API Gateway.
type GetApiKeyInput ¶
type GetApiKeyInput struct { // The identifier of the ApiKey resource. // // This member is required. ApiKey *string // A boolean flag to specify whether ( true ) or not ( false ) the result contains // the key value. IncludeValue *bool // contains filtered or unexported fields }
A request to get information about the current ApiKey resource.
type GetApiKeyOutput ¶
type GetApiKeyOutput struct { // The timestamp when the API Key was created. CreatedDate *time.Time // An Amazon Web Services Marketplace customer identifier, when integrating with // the Amazon Web Services SaaS Marketplace. CustomerId *string // The description of the API Key. Description *string // Specifies whether the API Key can be used by callers. Enabled bool // The identifier of the API Key. Id *string // The timestamp when the API Key was last updated. LastUpdatedDate *time.Time // The name of the API Key. Name *string // A list of Stage resources that are associated with the ApiKey resource. StageKeys []string // The collection of tags. Each tag element is associated with a given resource. Tags map[string]string // The value of the API Key. Value *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
A resource that can be distributed to callers for executing Method resources that require an API key. API keys can be mapped to any Stage on any RestApi, which indicates that the callers with the API key can make requests to that stage.
type GetApiKeysAPIClient ¶ added in v0.30.0
type GetApiKeysAPIClient interface {
GetApiKeys(context.Context, *GetApiKeysInput, ...func(*Options)) (*GetApiKeysOutput, error)
}
GetApiKeysAPIClient is a client that implements the GetApiKeys operation.
type GetApiKeysInput ¶
type GetApiKeysInput struct { // The identifier of a customer in Amazon Web Services Marketplace or an external // system, such as a developer portal. CustomerId *string // A boolean flag to specify whether ( true ) or not ( false ) the result contains // key values. IncludeValues *bool // The maximum number of returned results per page. The default value is 25 and // the maximum value is 500. Limit *int32 // The name of queried API keys. NameQuery *string // The current pagination position in the paged result set. Position *string // contains filtered or unexported fields }
A request to get information about the current ApiKeys resource.
type GetApiKeysOutput ¶
type GetApiKeysOutput struct { // The current page of elements from this collection. Items []types.ApiKey // The current pagination position in the paged result set. Position *string // A list of warning messages logged during the import of API keys when the // failOnWarnings option is set to true. Warnings []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents a collection of API keys as represented by an ApiKeys resource.
type GetApiKeysPaginator ¶ added in v0.30.0
type GetApiKeysPaginator struct {
// contains filtered or unexported fields
}
GetApiKeysPaginator is a paginator for GetApiKeys
func NewGetApiKeysPaginator ¶ added in v0.30.0
func NewGetApiKeysPaginator(client GetApiKeysAPIClient, params *GetApiKeysInput, optFns ...func(*GetApiKeysPaginatorOptions)) *GetApiKeysPaginator
NewGetApiKeysPaginator returns a new GetApiKeysPaginator
func (*GetApiKeysPaginator) HasMorePages ¶ added in v0.30.0
func (p *GetApiKeysPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*GetApiKeysPaginator) NextPage ¶ added in v0.30.0
func (p *GetApiKeysPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetApiKeysOutput, error)
NextPage retrieves the next GetApiKeys page.
type GetApiKeysPaginatorOptions ¶ added in v0.30.0
type GetApiKeysPaginatorOptions struct { // The maximum number of returned results per page. The default value is 25 and // the maximum value is 500. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
GetApiKeysPaginatorOptions is the paginator options for GetApiKeys
type GetAuthorizerInput ¶
type GetAuthorizerInput struct { // The identifier of the Authorizer resource. // // This member is required. AuthorizerId *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // contains filtered or unexported fields }
Request to describe an existing Authorizer resource.
type GetAuthorizerOutput ¶
type GetAuthorizerOutput struct { // Optional customer-defined field, used in OpenAPI imports and exports without // functional impact. AuthType *string // Specifies the required credentials as an IAM role for API Gateway to invoke the // authorizer. To specify an IAM role for API Gateway to assume, use the role's // Amazon Resource Name (ARN). To use resource-based permissions on the Lambda // function, specify null. AuthorizerCredentials *string // The TTL in seconds of cached authorizer results. If it equals 0, authorization // caching is disabled. If it is greater than 0, API Gateway will cache authorizer // responses. If this field is not set, the default value is 300. The maximum value // is 3600, or 1 hour. AuthorizerResultTtlInSeconds *int32 // Specifies the authorizer's Uniform Resource Identifier (URI). For TOKEN or // REQUEST authorizers, this must be a well-formed Lambda function URI, for // example, // arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:{account_id}:function:{lambda_function_name}/invocations // . In general, the URI has this form // arn:aws:apigateway:{region}:lambda:path/{service_api} , where {region} is the // same as the region hosting the Lambda function, path indicates that the // remaining substring in the URI should be treated as the path to the resource, // including the initial / . For Lambda functions, this is usually of the form // /2015-03-31/functions/[FunctionARN]/invocations . AuthorizerUri *string // The identifier for the authorizer resource. Id *string // The identity source for which authorization is requested. For a TOKEN or // COGNITO_USER_POOLS authorizer, this is required and specifies the request header // mapping expression for the custom header holding the authorization token // submitted by the client. For example, if the token header name is Auth , the // header mapping expression is method.request.header.Auth . For the REQUEST // authorizer, this is required when authorization caching is enabled. The value is // a comma-separated string of one or more mapping expressions of the specified // request parameters. For example, if an Auth header, a Name query string // parameter are defined as identity sources, this value is // method.request.header.Auth , method.request.querystring.Name . These parameters // will be used to derive the authorization caching key and to perform runtime // validation of the REQUEST authorizer by verifying all of the identity-related // request parameters are present, not null and non-empty. Only when this is true // does the authorizer invoke the authorizer Lambda function, otherwise, it returns // a 401 Unauthorized response without calling the Lambda function. The valid value // is a string of comma-separated mapping expressions of the specified request // parameters. When the authorization caching is not enabled, this property is // optional. IdentitySource *string // A validation expression for the incoming identity token. For TOKEN authorizers, // this value is a regular expression. For COGNITO_USER_POOLS authorizers, API // Gateway will match the aud field of the incoming token from the client against // the specified regular expression. It will invoke the authorizer's Lambda // function when there is a match. Otherwise, it will return a 401 Unauthorized // response without calling the Lambda function. The validation expression does not // apply to the REQUEST authorizer. IdentityValidationExpression *string // The name of the authorizer. Name *string // A list of the Amazon Cognito user pool ARNs for the COGNITO_USER_POOLS // authorizer. Each element is of this format: // arn:aws:cognito-idp:{region}:{account_id}:userpool/{user_pool_id} . For a TOKEN // or REQUEST authorizer, this is not defined. ProviderARNs []string // The authorizer type. Valid values are TOKEN for a Lambda function using a // single authorization token submitted in a custom header, REQUEST for a Lambda // function using incoming request parameters, and COGNITO_USER_POOLS for using an // Amazon Cognito user pool. Type types.AuthorizerType // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents an authorization layer for methods. If enabled on a method, API Gateway will activate the authorizer when a client calls the method.
type GetAuthorizersInput ¶
type GetAuthorizersInput struct { // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // The maximum number of returned results per page. The default value is 25 and // the maximum value is 500. Limit *int32 // The current pagination position in the paged result set. Position *string // contains filtered or unexported fields }
Request to describe an existing Authorizers resource.
type GetAuthorizersOutput ¶
type GetAuthorizersOutput struct { // The current page of elements from this collection. Items []types.Authorizer // The current pagination position in the paged result set. Position *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents a collection of Authorizer resources.
type GetBasePathMappingInput ¶
type GetBasePathMappingInput struct { // The base path name that callers of the API must provide as part of the URL // after the domain name. This value must be unique for all of the mappings across // a single API. Specify '(none)' if you do not want callers to specify any base // path name after the domain name. // // This member is required. BasePath *string // The domain name of the BasePathMapping resource to be described. // // This member is required. DomainName *string // The identifier for the domain name resource. Supported only for private custom // domain names. DomainNameId *string // contains filtered or unexported fields }
Request to describe a BasePathMapping resource.
type GetBasePathMappingOutput ¶
type GetBasePathMappingOutput struct { // The base path name that callers of the API must provide as part of the URL // after the domain name. BasePath *string // The string identifier of the associated RestApi. RestApiId *string // The name of the associated stage. Stage *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents the base path that callers of the API must provide as part of the URL after the domain name.
type GetBasePathMappingsAPIClient ¶ added in v0.30.0
type GetBasePathMappingsAPIClient interface {
GetBasePathMappings(context.Context, *GetBasePathMappingsInput, ...func(*Options)) (*GetBasePathMappingsOutput, error)
}
GetBasePathMappingsAPIClient is a client that implements the GetBasePathMappings operation.
type GetBasePathMappingsInput ¶
type GetBasePathMappingsInput struct { // The domain name of a BasePathMapping resource. // // This member is required. DomainName *string // The identifier for the domain name resource. Supported only for private custom // domain names. DomainNameId *string // The maximum number of returned results per page. The default value is 25 and // the maximum value is 500. Limit *int32 // The current pagination position in the paged result set. Position *string // contains filtered or unexported fields }
A request to get information about a collection of BasePathMapping resources.
type GetBasePathMappingsOutput ¶
type GetBasePathMappingsOutput struct { // The current page of elements from this collection. Items []types.BasePathMapping // The current pagination position in the paged result set. Position *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents a collection of BasePathMapping resources.
type GetBasePathMappingsPaginator ¶ added in v0.30.0
type GetBasePathMappingsPaginator struct {
// contains filtered or unexported fields
}
GetBasePathMappingsPaginator is a paginator for GetBasePathMappings
func NewGetBasePathMappingsPaginator ¶ added in v0.30.0
func NewGetBasePathMappingsPaginator(client GetBasePathMappingsAPIClient, params *GetBasePathMappingsInput, optFns ...func(*GetBasePathMappingsPaginatorOptions)) *GetBasePathMappingsPaginator
NewGetBasePathMappingsPaginator returns a new GetBasePathMappingsPaginator
func (*GetBasePathMappingsPaginator) HasMorePages ¶ added in v0.30.0
func (p *GetBasePathMappingsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*GetBasePathMappingsPaginator) NextPage ¶ added in v0.30.0
func (p *GetBasePathMappingsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetBasePathMappingsOutput, error)
NextPage retrieves the next GetBasePathMappings page.
type GetBasePathMappingsPaginatorOptions ¶ added in v0.30.0
type GetBasePathMappingsPaginatorOptions struct { // The maximum number of returned results per page. The default value is 25 and // the maximum value is 500. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
GetBasePathMappingsPaginatorOptions is the paginator options for GetBasePathMappings
type GetClientCertificateInput ¶
type GetClientCertificateInput struct { // The identifier of the ClientCertificate resource to be described. // // This member is required. ClientCertificateId *string // contains filtered or unexported fields }
A request to get information about the current ClientCertificate resource.
type GetClientCertificateOutput ¶
type GetClientCertificateOutput struct { // The identifier of the client certificate. ClientCertificateId *string // The timestamp when the client certificate was created. CreatedDate *time.Time // The description of the client certificate. Description *string // The timestamp when the client certificate will expire. ExpirationDate *time.Time // The PEM-encoded public key of the client certificate, which can be used to // configure certificate authentication in the integration endpoint . PemEncodedCertificate *string // The collection of tags. Each tag element is associated with a given resource. Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents a client certificate used to configure client-side SSL authentication while sending requests to the integration endpoint.
type GetClientCertificatesAPIClient ¶ added in v0.30.0
type GetClientCertificatesAPIClient interface {
GetClientCertificates(context.Context, *GetClientCertificatesInput, ...func(*Options)) (*GetClientCertificatesOutput, error)
}
GetClientCertificatesAPIClient is a client that implements the GetClientCertificates operation.
type GetClientCertificatesInput ¶
type GetClientCertificatesInput struct { // The maximum number of returned results per page. The default value is 25 and // the maximum value is 500. Limit *int32 // The current pagination position in the paged result set. Position *string // contains filtered or unexported fields }
A request to get information about a collection of ClientCertificate resources.
type GetClientCertificatesOutput ¶
type GetClientCertificatesOutput struct { // The current page of elements from this collection. Items []types.ClientCertificate // The current pagination position in the paged result set. Position *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents a collection of ClientCertificate resources.
type GetClientCertificatesPaginator ¶ added in v0.30.0
type GetClientCertificatesPaginator struct {
// contains filtered or unexported fields
}
GetClientCertificatesPaginator is a paginator for GetClientCertificates
func NewGetClientCertificatesPaginator ¶ added in v0.30.0
func NewGetClientCertificatesPaginator(client GetClientCertificatesAPIClient, params *GetClientCertificatesInput, optFns ...func(*GetClientCertificatesPaginatorOptions)) *GetClientCertificatesPaginator
NewGetClientCertificatesPaginator returns a new GetClientCertificatesPaginator
func (*GetClientCertificatesPaginator) HasMorePages ¶ added in v0.30.0
func (p *GetClientCertificatesPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*GetClientCertificatesPaginator) NextPage ¶ added in v0.30.0
func (p *GetClientCertificatesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetClientCertificatesOutput, error)
NextPage retrieves the next GetClientCertificates page.
type GetClientCertificatesPaginatorOptions ¶ added in v0.30.0
type GetClientCertificatesPaginatorOptions struct { // The maximum number of returned results per page. The default value is 25 and // the maximum value is 500. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
GetClientCertificatesPaginatorOptions is the paginator options for GetClientCertificates
type GetDeploymentInput ¶
type GetDeploymentInput struct { // The identifier of the Deployment resource to get information about. // // This member is required. DeploymentId *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // A query parameter to retrieve the specified embedded resources of the returned // Deployment resource in the response. In a REST API call, this embed parameter // value is a list of comma-separated strings, as in GET // /restapis/{restapi_id}/deployments/{deployment_id}?embed=var1,var2 . The SDK and // other platform-dependent libraries might use a different format for the list. // Currently, this request supports only retrieval of the embedded API summary this // way. Hence, the parameter value must be a single-valued list containing only the // "apisummary" string. For example, GET // /restapis/{restapi_id}/deployments/{deployment_id}?embed=apisummary . Embed []string // contains filtered or unexported fields }
Requests API Gateway to get information about a Deployment resource.
type GetDeploymentOutput ¶
type GetDeploymentOutput struct { // A summary of the RestApi at the date and time that the deployment resource was // created. ApiSummary map[string]map[string]types.MethodSnapshot // The date and time that the deployment resource was created. CreatedDate *time.Time // The description for the deployment resource. Description *string // The identifier for the deployment resource. Id *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
An immutable representation of a RestApi resource that can be called by users using Stages. A deployment must be associated with a Stage for it to be callable over the Internet.
type GetDeploymentsAPIClient ¶ added in v0.30.0
type GetDeploymentsAPIClient interface {
GetDeployments(context.Context, *GetDeploymentsInput, ...func(*Options)) (*GetDeploymentsOutput, error)
}
GetDeploymentsAPIClient is a client that implements the GetDeployments operation.
type GetDeploymentsInput ¶
type GetDeploymentsInput struct { // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // The maximum number of returned results per page. The default value is 25 and // the maximum value is 500. Limit *int32 // The current pagination position in the paged result set. Position *string // contains filtered or unexported fields }
Requests API Gateway to get information about a Deployments collection.
type GetDeploymentsOutput ¶
type GetDeploymentsOutput struct { // The current page of elements from this collection. Items []types.Deployment // The current pagination position in the paged result set. Position *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents a collection resource that contains zero or more references to your existing deployments, and links that guide you on how to interact with your collection. The collection offers a paginated view of the contained deployments.
type GetDeploymentsPaginator ¶ added in v0.30.0
type GetDeploymentsPaginator struct {
// contains filtered or unexported fields
}
GetDeploymentsPaginator is a paginator for GetDeployments
func NewGetDeploymentsPaginator ¶ added in v0.30.0
func NewGetDeploymentsPaginator(client GetDeploymentsAPIClient, params *GetDeploymentsInput, optFns ...func(*GetDeploymentsPaginatorOptions)) *GetDeploymentsPaginator
NewGetDeploymentsPaginator returns a new GetDeploymentsPaginator
func (*GetDeploymentsPaginator) HasMorePages ¶ added in v0.30.0
func (p *GetDeploymentsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*GetDeploymentsPaginator) NextPage ¶ added in v0.30.0
func (p *GetDeploymentsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetDeploymentsOutput, error)
NextPage retrieves the next GetDeployments page.
type GetDeploymentsPaginatorOptions ¶ added in v0.30.0
type GetDeploymentsPaginatorOptions struct { // The maximum number of returned results per page. The default value is 25 and // the maximum value is 500. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
GetDeploymentsPaginatorOptions is the paginator options for GetDeployments
type GetDocumentationPartInput ¶
type GetDocumentationPartInput struct { // The string identifier of the associated RestApi. // // This member is required. DocumentationPartId *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // contains filtered or unexported fields }
Gets a specified documentation part of a given API.
type GetDocumentationPartOutput ¶
type GetDocumentationPartOutput struct { // The DocumentationPart identifier, generated by API Gateway when the // DocumentationPart is created. Id *string // The location of the API entity to which the documentation applies. Valid fields // depend on the targeted API entity type. All the valid location fields are not // required. If not explicitly specified, a valid location field is treated as a // wildcard and associated documentation content may be inherited by matching // entities, unless overridden. Location *types.DocumentationPartLocation // A content map of API-specific key-value pairs describing the targeted API // entity. The map must be encoded as a JSON string, e.g., "{ \"description\": // \"The API does ...\" }" . Only OpenAPI-compliant documentation-related fields // from the properties map are exported and, hence, published as part of the API // entity definitions, while the original documentation parts are exported in a // OpenAPI extension of x-amazon-apigateway-documentation . Properties *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
A documentation part for a targeted API entity.
type GetDocumentationPartsInput ¶
type GetDocumentationPartsInput struct { // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // The maximum number of returned results per page. The default value is 25 and // the maximum value is 500. Limit *int32 // The status of the API documentation parts to retrieve. Valid values are // DOCUMENTED for retrieving DocumentationPart resources with content and // UNDOCUMENTED for DocumentationPart resources without content. LocationStatus types.LocationStatusType // The name of API entities of the to-be-retrieved documentation parts. NameQuery *string // The path of API entities of the to-be-retrieved documentation parts. Path *string // The current pagination position in the paged result set. Position *string // The type of API entities of the to-be-retrieved documentation parts. Type types.DocumentationPartType // contains filtered or unexported fields }
Gets the documentation parts of an API. The result may be filtered by the type, name, or path of API entities (targets).
type GetDocumentationPartsOutput ¶
type GetDocumentationPartsOutput struct { // The current page of elements from this collection. Items []types.DocumentationPart // The current pagination position in the paged result set. Position *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
The collection of documentation parts of an API.
type GetDocumentationVersionInput ¶
type GetDocumentationVersionInput struct { // The version identifier of the to-be-retrieved documentation snapshot. // // This member is required. DocumentationVersion *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // contains filtered or unexported fields }
Gets a documentation snapshot of an API.
type GetDocumentationVersionOutput ¶
type GetDocumentationVersionOutput struct { // The date when the API documentation snapshot is created. CreatedDate *time.Time // The description of the API documentation snapshot. Description *string // The version identifier of the API documentation snapshot. Version *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
A snapshot of the documentation of an API.
type GetDocumentationVersionsInput ¶
type GetDocumentationVersionsInput struct { // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // The maximum number of returned results per page. The default value is 25 and // the maximum value is 500. Limit *int32 // The current pagination position in the paged result set. Position *string // contains filtered or unexported fields }
Gets the documentation versions of an API.
type GetDocumentationVersionsOutput ¶
type GetDocumentationVersionsOutput struct { // The current page of elements from this collection. Items []types.DocumentationVersion // The current pagination position in the paged result set. Position *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
The collection of documentation snapshots of an API.
type GetDomainNameAccessAssociationsInput ¶ added in v1.28.0
type GetDomainNameAccessAssociationsInput struct { // The maximum number of returned results per page. The default value is 25 and // the maximum value is 500. Limit *int32 // The current pagination position in the paged result set. Position *string // The owner of the domain name access association. Use SELF to only list the // domain name access associations owned by your own account. Use OTHER_ACCOUNTS // to list the domain name access associations with your private custom domain // names that are owned by other AWS accounts. ResourceOwner types.ResourceOwner // contains filtered or unexported fields }
type GetDomainNameAccessAssociationsOutput ¶ added in v1.28.0
type GetDomainNameAccessAssociationsOutput struct { // The current page of elements from this collection. Items []types.DomainNameAccessAssociation // The current pagination position in the paged result set. Position *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type GetDomainNameInput ¶
type GetDomainNameInput struct { // The name of the DomainName resource. // // This member is required. DomainName *string // The identifier for the domain name resource. Required for private custom // domain names. DomainNameId *string // contains filtered or unexported fields }
Request to get the name of a DomainName resource.
type GetDomainNameOutput ¶
type GetDomainNameOutput struct { // The reference to an Amazon Web Services-managed certificate that will be used // by edge-optimized endpoint or private endpoint for this domain name. Certificate // Manager is the only supported source. CertificateArn *string // The name of the certificate that will be used by edge-optimized endpoint or // private endpoint for this domain name. CertificateName *string // The timestamp when the certificate that was used by edge-optimized endpoint or // private endpoint for this domain name was uploaded. CertificateUploadDate *time.Time // The domain name of the Amazon CloudFront distribution associated with this // custom domain name for an edge-optimized endpoint. You set up this association // when adding a DNS record pointing the custom domain name to this distribution // name. For more information about CloudFront distributions, see the Amazon // CloudFront documentation. DistributionDomainName *string // The region-agnostic Amazon Route 53 Hosted Zone ID of the edge-optimized // endpoint. The valid value is Z2FDTNDATAQYW2 for all the regions. For more // information, see Set up a Regional Custom Domain Name and AWS Regions and // Endpoints for API Gateway. DistributionHostedZoneId *string // The custom domain name as an API host name, for example, my-api.example.com . DomainName *string // The ARN of the domain name. Supported only for private custom domain names. DomainNameArn *string // The identifier for the domain name resource. Supported only for private custom // domain names. DomainNameId *string // The status of the DomainName migration. The valid values are AVAILABLE and // UPDATING . If the status is UPDATING , the domain cannot be modified further // until the existing operation is complete. If it is AVAILABLE , the domain can be // updated. DomainNameStatus types.DomainNameStatus // An optional text message containing detailed information about status of the // DomainName migration. DomainNameStatusMessage *string // The endpoint configuration of this DomainName showing the endpoint types of the // domain name. EndpointConfiguration *types.EndpointConfiguration // A stringified JSON policy document that applies to the API Gateway Management // service for this DomainName. This policy document controls access for access // association sources to create domain name access associations with this // DomainName. Supported only for private custom domain names. ManagementPolicy *string // The mutual TLS authentication configuration for a custom domain name. If // specified, API Gateway performs two-way authentication between the client and // the server. Clients must present a trusted certificate to access your API. MutualTlsAuthentication *types.MutualTlsAuthentication // The ARN of the public certificate issued by ACM to validate ownership of your // custom domain. Only required when configuring mutual TLS and using an ACM // imported or private CA certificate ARN as the regionalCertificateArn. OwnershipVerificationCertificateArn *string // A stringified JSON policy document that applies to the execute-api service for // this DomainName regardless of the caller and Method configuration. Supported // only for private custom domain names. Policy *string // The reference to an Amazon Web Services-managed certificate that will be used // for validating the regional domain name. Certificate Manager is the only // supported source. RegionalCertificateArn *string // The name of the certificate that will be used for validating the regional // domain name. RegionalCertificateName *string // The domain name associated with the regional endpoint for this custom domain // name. You set up this association by adding a DNS record that points the custom // domain name to this regional domain name. The regional domain name is returned // by API Gateway when you create a regional endpoint. RegionalDomainName *string // The region-specific Amazon Route 53 Hosted Zone ID of the regional endpoint. // For more information, see Set up a Regional Custom Domain Name and AWS Regions // and Endpoints for API Gateway. RegionalHostedZoneId *string // The Transport Layer Security (TLS) version + cipher suite for this DomainName. // The valid values are TLS_1_0 and TLS_1_2 . SecurityPolicy types.SecurityPolicy // The collection of tags. Each tag element is associated with a given resource. Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents a custom domain name as a user-friendly host name of an API (RestApi).
type GetDomainNamesAPIClient ¶ added in v0.30.0
type GetDomainNamesAPIClient interface {
GetDomainNames(context.Context, *GetDomainNamesInput, ...func(*Options)) (*GetDomainNamesOutput, error)
}
GetDomainNamesAPIClient is a client that implements the GetDomainNames operation.
type GetDomainNamesInput ¶
type GetDomainNamesInput struct { // The maximum number of returned results per page. The default value is 25 and // the maximum value is 500. Limit *int32 // The current pagination position in the paged result set. Position *string // The owner of the domain name access association. ResourceOwner types.ResourceOwner // contains filtered or unexported fields }
Request to describe a collection of DomainName resources.
type GetDomainNamesOutput ¶
type GetDomainNamesOutput struct { // The current page of elements from this collection. Items []types.DomainName // The current pagination position in the paged result set. Position *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents a collection of DomainName resources.
type GetDomainNamesPaginator ¶ added in v0.30.0
type GetDomainNamesPaginator struct {
// contains filtered or unexported fields
}
GetDomainNamesPaginator is a paginator for GetDomainNames
func NewGetDomainNamesPaginator ¶ added in v0.30.0
func NewGetDomainNamesPaginator(client GetDomainNamesAPIClient, params *GetDomainNamesInput, optFns ...func(*GetDomainNamesPaginatorOptions)) *GetDomainNamesPaginator
NewGetDomainNamesPaginator returns a new GetDomainNamesPaginator
func (*GetDomainNamesPaginator) HasMorePages ¶ added in v0.30.0
func (p *GetDomainNamesPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*GetDomainNamesPaginator) NextPage ¶ added in v0.30.0
func (p *GetDomainNamesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetDomainNamesOutput, error)
NextPage retrieves the next GetDomainNames page.
type GetDomainNamesPaginatorOptions ¶ added in v0.30.0
type GetDomainNamesPaginatorOptions struct { // The maximum number of returned results per page. The default value is 25 and // the maximum value is 500. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
GetDomainNamesPaginatorOptions is the paginator options for GetDomainNames
type GetExportInput ¶
type GetExportInput struct { // The type of export. Acceptable values are 'oas30' for OpenAPI 3.0.x and // 'swagger' for Swagger/OpenAPI 2.0. // // This member is required. ExportType *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // The name of the Stage that will be exported. // // This member is required. StageName *string // The content-type of the export, for example application/json . Currently // application/json and application/yaml are supported for exportType of oas30 and // swagger . This should be specified in the Accept header for direct API requests. Accepts *string // A key-value map of query string parameters that specify properties of the // export, depending on the requested exportType . For exportType oas30 and swagger // , any combination of the following parameters are supported: // extensions='integrations' or extensions='apigateway' will export the API with // x-amazon-apigateway-integration extensions. extensions='authorizers' will // export the API with x-amazon-apigateway-authorizer extensions. postman will // export the API with Postman extensions, allowing for import to the Postman tool Parameters map[string]string // contains filtered or unexported fields }
Request a new export of a RestApi for a particular Stage.
type GetExportOutput ¶
type GetExportOutput struct { // The binary blob response to GetExport, which contains the export. Body []byte // The content-disposition header value in the HTTP response. ContentDisposition *string // The content-type header value in the HTTP response. This will correspond to a // valid 'accept' type in the request. ContentType *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
The binary blob response to GetExport, which contains the generated SDK.
type GetGatewayResponseInput ¶
type GetGatewayResponseInput struct { // The response type of the associated GatewayResponse. // // This member is required. ResponseType types.GatewayResponseType // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // contains filtered or unexported fields }
Gets a GatewayResponse of a specified response type on the given RestApi.
type GetGatewayResponseOutput ¶
type GetGatewayResponseOutput struct { // A Boolean flag to indicate whether this GatewayResponse is the default gateway // response ( true ) or not ( false ). A default gateway response is one generated // by API Gateway without any customization by an API developer. DefaultResponse bool // Response parameters (paths, query strings and headers) of the GatewayResponse // as a string-to-string map of key-value pairs. ResponseParameters map[string]string // Response templates of the GatewayResponse as a string-to-string map of // key-value pairs. ResponseTemplates map[string]string // The response type of the associated GatewayResponse. ResponseType types.GatewayResponseType // The HTTP status code for this GatewayResponse. StatusCode *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
A gateway response of a given response type and status code, with optional response parameters and mapping templates.
type GetGatewayResponsesInput ¶
type GetGatewayResponsesInput struct { // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // The maximum number of returned results per page. The default value is 25 and // the maximum value is 500. The GatewayResponses collection does not support // pagination and the limit does not apply here. Limit *int32 // The current pagination position in the paged result set. The GatewayResponse // collection does not support pagination and the position does not apply here. Position *string // contains filtered or unexported fields }
Gets the GatewayResponses collection on the given RestApi. If an API developer has not added any definitions for gateway responses, the result will be the API Gateway-generated default GatewayResponses collection for the supported response types.
type GetGatewayResponsesOutput ¶
type GetGatewayResponsesOutput struct { // Returns the entire collection, because of no pagination support. Items []types.GatewayResponse // The current pagination position in the paged result set. The GatewayResponse // collection does not support pagination and the position does not apply here. Position *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
The collection of the GatewayResponse instances of a RestApi as a responseType -to-GatewayResponse object map of key-value pairs. As such, pagination is not supported for querying this collection.
type GetIntegrationInput ¶
type GetIntegrationInput struct { // Specifies a get integration request's HTTP method. // // This member is required. HttpMethod *string // Specifies a get integration request's resource identifier // // This member is required. ResourceId *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // contains filtered or unexported fields }
Represents a request to get the integration configuration.
type GetIntegrationOutput ¶
type GetIntegrationOutput struct { // A list of request parameters whose values API Gateway caches. To be valid // values for cacheKeyParameters , these parameters must also be specified for // Method requestParameters . CacheKeyParameters []string // Specifies a group of related cached parameters. By default, API Gateway uses // the resource ID as the cacheNamespace . You can specify the same cacheNamespace // across resources to return the same cached data for requests to different // resources. CacheNamespace *string // The ID of the VpcLink used for the integration when connectionType=VPC_LINK and // undefined, otherwise. ConnectionId *string // The type of the network connection to the integration endpoint. The valid value // is INTERNET for connections through the public routable internet or VPC_LINK // for private connections between API Gateway and a network load balancer in a // VPC. The default value is INTERNET . ConnectionType types.ConnectionType // Specifies how to handle request payload content type conversions. Supported // values are CONVERT_TO_BINARY and CONVERT_TO_TEXT , with the following behaviors: // // If this property is not defined, the request payload will be passed through // from the method request to integration request without modification, provided // that the passthroughBehavior is configured to support payload pass-through. ContentHandling types.ContentHandlingStrategy // Specifies the credentials required for the integration, if any. For AWS // integrations, three options are available. To specify an IAM Role for API // Gateway to assume, use the role's Amazon Resource Name (ARN). To require that // the caller's identity be passed through from the request, specify the string // arn:aws:iam::\*:user/\* . To use resource-based permissions on supported Amazon // Web Services services, specify null. Credentials *string // Specifies the integration's HTTP method type. For the Type property, if you // specify MOCK , this property is optional. For Lambda integrations, you must set // the integration method to POST . For all other types, you must specify this // property. HttpMethod *string // Specifies the integration's responses. IntegrationResponses map[string]types.IntegrationResponse // Specifies how the method request body of an unmapped content type will be // passed through the integration request to the back end without transformation. A // content type is unmapped if no mapping template is defined in the integration or // the content type does not match any of the mapped content types, as specified in // requestTemplates . The valid value is one of the following: WHEN_NO_MATCH : // passes the method request body through the integration request to the back end // without transformation when the method request content type does not match any // content type associated with the mapping templates defined in the integration // request. WHEN_NO_TEMPLATES : passes the method request body through the // integration request to the back end without transformation when no mapping // template is defined in the integration request. If a template is defined when // this option is selected, the method request of an unmapped content-type will be // rejected with an HTTP 415 Unsupported Media Type response. NEVER : rejects the // method request with an HTTP 415 Unsupported Media Type response when either the // method request content type does not match any content type associated with the // mapping templates defined in the integration request or no mapping template is // defined in the integration request. PassthroughBehavior *string // A key-value map specifying request parameters that are passed from the method // request to the back end. The key is an integration request parameter name and // the associated value is a method request parameter value or static value that // must be enclosed within single quotes and pre-encoded as required by the back // end. The method request parameter value must match the pattern of // method.request.{location}.{name} , where location is querystring , path , or // header and name must be a valid and unique method request parameter name. RequestParameters map[string]string // Represents a map of Velocity templates that are applied on the request payload // based on the value of the Content-Type header sent by the client. The content // type value is the key in this map, and the template (as a String) is the value. RequestTemplates map[string]string // Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 // milliseconds or 29 seconds. TimeoutInMillis int32 // Specifies the TLS configuration for an integration. TlsConfig *types.TlsConfig // Specifies an API method integration type. The valid value is one of the // following: // // For the HTTP and HTTP proxy integrations, each integration can specify a // protocol ( http/https ), port and path. Standard 80 and 443 ports are supported // as well as custom ports above 1024. An HTTP or HTTP proxy integration with a // connectionType of VPC_LINK is referred to as a private integration and uses a // VpcLink to connect API Gateway to a network load balancer of a VPC. Type types.IntegrationType // Specifies Uniform Resource Identifier (URI) of the integration endpoint. // // For HTTP or HTTP_PROXY integrations, the URI must be a fully formed, encoded // HTTP(S) URL according to the RFC-3986 specification for standard integrations. // If connectionType is VPC_LINK specify the Network Load Balancer DNS name. For // AWS or AWS_PROXY integrations, the URI is of the form // arn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{service_api} // . Here, {Region} is the API Gateway region (e.g., us-east-1); {service} is the // name of the integrated Amazon Web Services service (e.g., s3); and {subdomain} // is a designated subdomain supported by certain Amazon Web Services service for // fast host-name lookup. action can be used for an Amazon Web Services service // action-based API, using an Action={name}&{p1}={v1}&p2={v2}... query string. The // ensuing {service_api} refers to a supported action {name} plus any required // input parameters. Alternatively, path can be used for an Amazon Web Services // service path-based API. The ensuing service_api refers to the path to an Amazon // Web Services service resource, including the region of the integrated Amazon Web // Services service, if applicable. For example, for integration with the S3 API of // GetObject, the uri can be either // arn:aws:apigateway:us-west-2:s3:action/GetObject&Bucket={bucket}&Key={key} or // arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key} Uri *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents an HTTP , HTTP_PROXY , AWS , AWS_PROXY , or Mock integration.
type GetIntegrationResponseInput ¶
type GetIntegrationResponseInput struct { // Specifies a get integration response request's HTTP method. // // This member is required. HttpMethod *string // Specifies a get integration response request's resource identifier. // // This member is required. ResourceId *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // Specifies a get integration response request's status code. // // This member is required. StatusCode *string // contains filtered or unexported fields }
Represents a get integration response request.
type GetIntegrationResponseOutput ¶
type GetIntegrationResponseOutput struct { // Specifies how to handle response payload content type conversions. Supported // values are CONVERT_TO_BINARY and CONVERT_TO_TEXT , with the following behaviors: // // If this property is not defined, the response payload will be passed through // from the integration response to the method response without modification. ContentHandling types.ContentHandlingStrategy // A key-value map specifying response parameters that are passed to the method // response from the back end. The key is a method response header parameter name // and the mapped value is an integration response header value, a static value // enclosed within a pair of single quotes, or a JSON expression from the // integration response body. The mapping key must match the pattern of // method.response.header.{name} , where name is a valid and unique header name. // The mapped non-static value must match the pattern of // integration.response.header.{name} or // integration.response.body.{JSON-expression} , where name is a valid and unique // response header name and JSON-expression is a valid JSON expression without the // $ prefix. ResponseParameters map[string]string // Specifies the templates used to transform the integration response body. // Response templates are represented as a key/value map, with a content-type as // the key and a template as the value. ResponseTemplates map[string]string // Specifies the regular expression (regex) pattern used to choose an integration // response based on the response from the back end. For example, if the success // response returns nothing and the error response returns some string, you could // use the .+ regex to match error response. However, make sure that the error // response does not contain any newline ( \n ) character in such cases. If the // back end is an Lambda function, the Lambda function error header is matched. For // all other HTTP and Amazon Web Services back ends, the HTTP status code is // matched. SelectionPattern *string // Specifies the status code that is used to map the integration response to an // existing MethodResponse. StatusCode *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents an integration response. The status code must map to an existing MethodResponse, and parameters and templates can be used to transform the back-end response.
type GetMethodInput ¶
type GetMethodInput struct { // Specifies the method request's HTTP method type. // // This member is required. HttpMethod *string // The Resource identifier for the Method resource. // // This member is required. ResourceId *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // contains filtered or unexported fields }
Request to describe an existing Method resource.
type GetMethodOutput ¶
type GetMethodOutput struct { // A boolean flag specifying whether a valid ApiKey is required to invoke this // method. ApiKeyRequired *bool // A list of authorization scopes configured on the method. The scopes are used // with a COGNITO_USER_POOLS authorizer to authorize the method invocation. The // authorization works by matching the method scopes against the scopes parsed from // the access token in the incoming request. The method invocation is authorized if // any method scopes matches a claimed scope in the access token. Otherwise, the // invocation is not authorized. When the method scope is configured, the client // must provide an access token instead of an identity token for authorization // purposes. AuthorizationScopes []string // The method's authorization type. Valid values are NONE for open access, AWS_IAM // for using AWS IAM permissions, CUSTOM for using a custom authorizer, or // COGNITO_USER_POOLS for using a Cognito user pool. AuthorizationType *string // The identifier of an Authorizer to use on this method. The authorizationType // must be CUSTOM . AuthorizerId *string // The method's HTTP verb. HttpMethod *string // Gets the method's integration responsible for passing the client-submitted // request to the back end and performing necessary transformations to make the // request compliant with the back end. MethodIntegration *types.Integration // Gets a method response associated with a given HTTP status code. MethodResponses map[string]types.MethodResponse // A human-friendly operation identifier for the method. For example, you can // assign the operationName of ListPets for the GET /pets method in the PetStore // example. OperationName *string // A key-value map specifying data schemas, represented by Model resources, (as // the mapped value) of the request payloads of given content types (as the mapping // key). RequestModels map[string]string // A key-value map defining required or optional method request parameters that // can be accepted by API Gateway. A key is a method request parameter name // matching the pattern of method.request.{location}.{name} , where location is // querystring , path , or header and name is a valid and unique parameter name. // The value associated with the key is a Boolean flag indicating whether the // parameter is required ( true ) or optional ( false ). The method request // parameter names defined here are available in Integration to be mapped to // integration request parameters or templates. RequestParameters map[string]bool // The identifier of a RequestValidator for request validation. RequestValidatorId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents a client-facing interface by which the client calls the API to
access back-end resources. A Method resource is integrated with an Integration resource. Both consist of a request and one or more responses. The method request takes the client input that is passed to the back end through the integration request. A method response returns the output from the back end to the client through an integration response. A method request is embodied in a Method resource, whereas an integration request is embodied in an Integration resource. On the other hand, a method response is represented by a MethodResponse resource, whereas an integration response is represented by an IntegrationResponse resource.
type GetMethodResponseInput ¶
type GetMethodResponseInput struct { // The HTTP verb of the Method resource. // // This member is required. HttpMethod *string // The Resource identifier for the MethodResponse resource. // // This member is required. ResourceId *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // The status code for the MethodResponse resource. // // This member is required. StatusCode *string // contains filtered or unexported fields }
Request to describe a MethodResponse resource.
type GetMethodResponseOutput ¶
type GetMethodResponseOutput struct { // Specifies the Model resources used for the response's content-type. Response // models are represented as a key/value map, with a content-type as the key and a // Model name as the value. ResponseModels map[string]string // A key-value map specifying required or optional response parameters that API // Gateway can send back to the caller. A key defines a method response header and // the value specifies whether the associated method response header is required or // not. The expression of the key must match the pattern // method.response.header.{name} , where name is a valid and unique header name. // API Gateway passes certain integration response data to the method response // headers specified here according to the mapping you prescribe in the API's // IntegrationResponse. The integration response data that can be mapped include an // integration response header expressed in integration.response.header.{name} , a // static value enclosed within a pair of single quotes (e.g., 'application/json' // ), or a JSON expression from the back-end response payload in the form of // integration.response.body.{JSON-expression} , where JSON-expression is a valid // JSON expression without the $ prefix.) ResponseParameters map[string]bool // The method response's status code. StatusCode *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents a method response of a given HTTP status code returned to the client. The method response is passed from the back end through the associated integration response that can be transformed using a mapping template.
type GetModelInput ¶
type GetModelInput struct { // The name of the model as an identifier. // // This member is required. ModelName *string // The RestApi identifier under which the Model exists. // // This member is required. RestApiId *string // A query parameter of a Boolean value to resolve ( true ) all external model // references and returns a flattened model schema or not ( false ) The default is // false . Flatten bool // contains filtered or unexported fields }
Request to list information about a model in an existing RestApi resource.
type GetModelOutput ¶
type GetModelOutput struct { // The content-type for the model. ContentType *string // The description of the model. Description *string // The identifier for the model resource. Id *string // The name of the model. Must be an alphanumeric string. Name *string // The schema for the model. For application/json models, this should be JSON // schema draft 4 model. Do not include "\*/" characters in the description of any // properties because such "\*/" characters may be interpreted as the closing // marker for comments in some languages, such as Java or JavaScript, causing the // installation of your API's SDK generated by API Gateway to fail. Schema *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents the data structure of a method's request or response payload.
type GetModelTemplateInput ¶
type GetModelTemplateInput struct { // The name of the model for which to generate a template. // // This member is required. ModelName *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // contains filtered or unexported fields }
Request to generate a sample mapping template used to transform the payload.
type GetModelTemplateOutput ¶
type GetModelTemplateOutput struct { // The Apache Velocity Template Language (VTL) template content used for the // template resource. Value *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents a mapping template used to transform a payload.
type GetModelsAPIClient ¶ added in v0.30.0
type GetModelsAPIClient interface {
GetModels(context.Context, *GetModelsInput, ...func(*Options)) (*GetModelsOutput, error)
}
GetModelsAPIClient is a client that implements the GetModels operation.
type GetModelsInput ¶
type GetModelsInput struct { // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // The maximum number of returned results per page. The default value is 25 and // the maximum value is 500. Limit *int32 // The current pagination position in the paged result set. Position *string // contains filtered or unexported fields }
Request to list existing Models defined for a RestApi resource.
type GetModelsOutput ¶
type GetModelsOutput struct { // The current page of elements from this collection. Items []types.Model // The current pagination position in the paged result set. Position *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents a collection of Model resources.
type GetModelsPaginator ¶ added in v0.30.0
type GetModelsPaginator struct {
// contains filtered or unexported fields
}
GetModelsPaginator is a paginator for GetModels
func NewGetModelsPaginator ¶ added in v0.30.0
func NewGetModelsPaginator(client GetModelsAPIClient, params *GetModelsInput, optFns ...func(*GetModelsPaginatorOptions)) *GetModelsPaginator
NewGetModelsPaginator returns a new GetModelsPaginator
func (*GetModelsPaginator) HasMorePages ¶ added in v0.30.0
func (p *GetModelsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*GetModelsPaginator) NextPage ¶ added in v0.30.0
func (p *GetModelsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetModelsOutput, error)
NextPage retrieves the next GetModels page.
type GetModelsPaginatorOptions ¶ added in v0.30.0
type GetModelsPaginatorOptions struct { // The maximum number of returned results per page. The default value is 25 and // the maximum value is 500. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
GetModelsPaginatorOptions is the paginator options for GetModels
type GetRequestValidatorInput ¶
type GetRequestValidatorInput struct { // The identifier of the RequestValidator to be retrieved. // // This member is required. RequestValidatorId *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // contains filtered or unexported fields }
Gets a RequestValidator of a given RestApi.
type GetRequestValidatorOutput ¶
type GetRequestValidatorOutput struct { // The identifier of this RequestValidator. Id *string // The name of this RequestValidator Name *string // A Boolean flag to indicate whether to validate a request body according to the // configured Model schema. ValidateRequestBody bool // A Boolean flag to indicate whether to validate request parameters ( true ) or // not ( false ). ValidateRequestParameters bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
A set of validation rules for incoming Method requests.
type GetRequestValidatorsInput ¶
type GetRequestValidatorsInput struct { // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // The maximum number of returned results per page. The default value is 25 and // the maximum value is 500. Limit *int32 // The current pagination position in the paged result set. Position *string // contains filtered or unexported fields }
Gets the RequestValidators collection of a given RestApi.
type GetRequestValidatorsOutput ¶
type GetRequestValidatorsOutput struct { // The current page of elements from this collection. Items []types.RequestValidator // The current pagination position in the paged result set. Position *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
A collection of RequestValidator resources of a given RestApi.
type GetResourceInput ¶
type GetResourceInput struct { // The identifier for the Resource resource. // // This member is required. ResourceId *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // A query parameter to retrieve the specified resources embedded in the returned // Resource representation in the response. This embed parameter value is a list // of comma-separated strings. Currently, the request supports only retrieval of // the embedded Method resources this way. The query parameter value must be a // single-valued list and contain the "methods" string. For example, GET // /restapis/{restapi_id}/resources/{resource_id}?embed=methods . Embed []string // contains filtered or unexported fields }
Request to list information about a resource.
type GetResourceOutput ¶
type GetResourceOutput struct { // The resource's identifier. Id *string // The parent resource's identifier. ParentId *string // The full path for this resource. Path *string // The last path segment for this resource. PathPart *string // Gets an API resource's method of a given HTTP verb. ResourceMethods map[string]types.Method // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents an API resource.
type GetResourcesAPIClient ¶ added in v0.30.0
type GetResourcesAPIClient interface {
GetResources(context.Context, *GetResourcesInput, ...func(*Options)) (*GetResourcesOutput, error)
}
GetResourcesAPIClient is a client that implements the GetResources operation.
type GetResourcesInput ¶
type GetResourcesInput struct { // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // A query parameter used to retrieve the specified resources embedded in the // returned Resources resource in the response. This embed parameter value is a // list of comma-separated strings. Currently, the request supports only retrieval // of the embedded Method resources this way. The query parameter value must be a // single-valued list and contain the "methods" string. For example, GET // /restapis/{restapi_id}/resources?embed=methods . Embed []string // The maximum number of returned results per page. The default value is 25 and // the maximum value is 500. Limit *int32 // The current pagination position in the paged result set. Position *string // contains filtered or unexported fields }
Request to list information about a collection of resources.
type GetResourcesOutput ¶
type GetResourcesOutput struct { // The current page of elements from this collection. Items []types.Resource // The current pagination position in the paged result set. Position *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents a collection of Resource resources.
type GetResourcesPaginator ¶ added in v0.30.0
type GetResourcesPaginator struct {
// contains filtered or unexported fields
}
GetResourcesPaginator is a paginator for GetResources
func NewGetResourcesPaginator ¶ added in v0.30.0
func NewGetResourcesPaginator(client GetResourcesAPIClient, params *GetResourcesInput, optFns ...func(*GetResourcesPaginatorOptions)) *GetResourcesPaginator
NewGetResourcesPaginator returns a new GetResourcesPaginator
func (*GetResourcesPaginator) HasMorePages ¶ added in v0.30.0
func (p *GetResourcesPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*GetResourcesPaginator) NextPage ¶ added in v0.30.0
func (p *GetResourcesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetResourcesOutput, error)
NextPage retrieves the next GetResources page.
type GetResourcesPaginatorOptions ¶ added in v0.30.0
type GetResourcesPaginatorOptions struct { // The maximum number of returned results per page. The default value is 25 and // the maximum value is 500. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
GetResourcesPaginatorOptions is the paginator options for GetResources
type GetRestApiInput ¶
type GetRestApiInput struct { // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // contains filtered or unexported fields }
The GET request to list an existing RestApi defined for your collection.
type GetRestApiOutput ¶
type GetRestApiOutput struct { // The source of the API key for metering requests according to a usage plan. // Valid values are: > HEADER to read the API key from the X-API-Key header of a // request. AUTHORIZER to read the API key from the UsageIdentifierKey from a // custom authorizer. ApiKeySource types.ApiKeySourceType // The list of binary media types supported by the RestApi. By default, the // RestApi supports only UTF-8-encoded text payloads. BinaryMediaTypes []string // The timestamp when the API was created. CreatedDate *time.Time // The API's description. Description *string // Specifies whether clients can invoke your API by using the default execute-api // endpoint. By default, clients can invoke your API with the default // https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that // clients use a custom domain name to invoke your API, disable the default // endpoint. DisableExecuteApiEndpoint bool // The endpoint configuration of this RestApi showing the endpoint types of the // API. EndpointConfiguration *types.EndpointConfiguration // The API's identifier. This identifier is unique across all of your APIs in API // Gateway. Id *string // A nullable integer that is used to enable compression (with non-negative // between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a // null value) on an API. When compression is enabled, compression or decompression // is not applied on the payload if the payload size is smaller than this value. // Setting it to zero allows compression for any payload size. MinimumCompressionSize *int32 // The API's name. Name *string // A stringified JSON policy document that applies to this RestApi regardless of // the caller and Method configuration. Policy *string // The API's root resource ID. RootResourceId *string // The collection of tags. Each tag element is associated with a given resource. Tags map[string]string // A version identifier for the API. Version *string // The warning messages reported when failonwarnings is turned on during API // import. Warnings []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents a REST API.
type GetRestApisAPIClient ¶ added in v0.30.0
type GetRestApisAPIClient interface {
GetRestApis(context.Context, *GetRestApisInput, ...func(*Options)) (*GetRestApisOutput, error)
}
GetRestApisAPIClient is a client that implements the GetRestApis operation.
type GetRestApisInput ¶
type GetRestApisInput struct { // The maximum number of returned results per page. The default value is 25 and // the maximum value is 500. Limit *int32 // The current pagination position in the paged result set. Position *string // contains filtered or unexported fields }
The GET request to list existing RestApis defined for your collection.
type GetRestApisOutput ¶
type GetRestApisOutput struct { // The current page of elements from this collection. Items []types.RestApi // The current pagination position in the paged result set. Position *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Contains references to your APIs and links that guide you in how to interact with your collection. A collection offers a paginated view of your APIs.
type GetRestApisPaginator ¶ added in v0.30.0
type GetRestApisPaginator struct {
// contains filtered or unexported fields
}
GetRestApisPaginator is a paginator for GetRestApis
func NewGetRestApisPaginator ¶ added in v0.30.0
func NewGetRestApisPaginator(client GetRestApisAPIClient, params *GetRestApisInput, optFns ...func(*GetRestApisPaginatorOptions)) *GetRestApisPaginator
NewGetRestApisPaginator returns a new GetRestApisPaginator
func (*GetRestApisPaginator) HasMorePages ¶ added in v0.30.0
func (p *GetRestApisPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*GetRestApisPaginator) NextPage ¶ added in v0.30.0
func (p *GetRestApisPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetRestApisOutput, error)
NextPage retrieves the next GetRestApis page.
type GetRestApisPaginatorOptions ¶ added in v0.30.0
type GetRestApisPaginatorOptions struct { // The maximum number of returned results per page. The default value is 25 and // the maximum value is 500. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
GetRestApisPaginatorOptions is the paginator options for GetRestApis
type GetSdkInput ¶
type GetSdkInput struct { // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // The language for the generated SDK. Currently java , javascript , android , // objectivec (for iOS), swift (for iOS), and ruby are supported. // // This member is required. SdkType *string // The name of the Stage that the SDK will use. // // This member is required. StageName *string // A string-to-string key-value map of query parameters sdkType -dependent // properties of the SDK. For sdkType of objectivec or swift , a parameter named // classPrefix is required. For sdkType of android , parameters named groupId , // artifactId , artifactVersion , and invokerPackage are required. For sdkType of // java , parameters named serviceName and javaPackageName are required. Parameters map[string]string // contains filtered or unexported fields }
Request a new generated client SDK for a RestApi and Stage.
type GetSdkOutput ¶
type GetSdkOutput struct { // The binary blob response to GetSdk, which contains the generated SDK. Body []byte // The content-disposition header value in the HTTP response. ContentDisposition *string // The content-type header value in the HTTP response. ContentType *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
The binary blob response to GetSdk, which contains the generated SDK.
type GetSdkTypeInput ¶
type GetSdkTypeInput struct { // The identifier of the queried SdkType instance. // // This member is required. Id *string // contains filtered or unexported fields }
Get an SdkType instance.
type GetSdkTypeOutput ¶
type GetSdkTypeOutput struct { // A list of configuration properties of an SdkType. ConfigurationProperties []types.SdkConfigurationProperty // The description of an SdkType. Description *string // The user-friendly name of an SdkType instance. FriendlyName *string // The identifier of an SdkType instance. Id *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
A type of SDK that API Gateway can generate.
type GetSdkTypesInput ¶
type GetSdkTypesInput struct { // The maximum number of returned results per page. The default value is 25 and // the maximum value is 500. Limit *int32 // The current pagination position in the paged result set. Position *string // contains filtered or unexported fields }
Get the SdkTypes collection.
type GetSdkTypesOutput ¶
type GetSdkTypesOutput struct { // The current page of elements from this collection. Items []types.SdkType // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
The collection of SdkType instances.
type GetStageInput ¶
type GetStageInput struct { // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // The name of the Stage resource to get information about. // // This member is required. StageName *string // contains filtered or unexported fields }
Requests API Gateway to get information about a Stage resource.
type GetStageOutput ¶
type GetStageOutput struct { // Settings for logging access in this stage. AccessLogSettings *types.AccessLogSettings // Specifies whether a cache cluster is enabled for the stage. To activate a // method-level cache, set CachingEnabled to true for a method. CacheClusterEnabled bool // The stage's cache capacity in GB. For more information about choosing a cache // size, see [Enabling API caching to enhance responsiveness]. // // [Enabling API caching to enhance responsiveness]: https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-caching.html CacheClusterSize types.CacheClusterSize // The status of the cache cluster for the stage, if enabled. CacheClusterStatus types.CacheClusterStatus // Settings for the canary deployment in this stage. CanarySettings *types.CanarySettings // The identifier of a client certificate for an API stage. ClientCertificateId *string // The timestamp when the stage was created. CreatedDate *time.Time // The identifier of the Deployment that the stage points to. DeploymentId *string // The stage's description. Description *string // The version of the associated API documentation. DocumentationVersion *string // The timestamp when the stage last updated. LastUpdatedDate *time.Time // A map that defines the method settings for a Stage resource. Keys (designated // as /{method_setting_key below) are method paths defined as // {resource_path}/{http_method} for an individual method override, or /\*/\* for // overriding all methods in the stage. MethodSettings map[string]types.MethodSetting // The name of the stage is the first path segment in the Uniform Resource // Identifier (URI) of a call to API Gateway. Stage names can only contain // alphanumeric characters, hyphens, and underscores. Maximum length is 128 // characters. StageName *string // The collection of tags. Each tag element is associated with a given resource. Tags map[string]string // Specifies whether active tracing with X-ray is enabled for the Stage. TracingEnabled bool // A map that defines the stage variables for a Stage resource. Variable names can // have alphanumeric and underscore characters, and the values must match // [A-Za-z0-9-._~:/?#&=,]+ . Variables map[string]string // The ARN of the WebAcl associated with the Stage. WebAclArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents a unique identifier for a version of a deployed RestApi that is callable by users.
type GetStagesInput ¶
type GetStagesInput struct { // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // The stages' deployment identifiers. DeploymentId *string // contains filtered or unexported fields }
Requests API Gateway to get information about one or more Stage resources.
type GetStagesOutput ¶
type GetStagesOutput struct { // The current page of elements from this collection. Item []types.Stage // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
A list of Stage resources that are associated with the ApiKey resource.
type GetTagsInput ¶
type GetTagsInput struct { // The ARN of a resource that can be tagged. // // This member is required. ResourceArn *string // (Not currently supported) The maximum number of returned results per page. The // default value is 25 and the maximum value is 500. Limit *int32 // (Not currently supported) The current pagination position in the paged result // set. Position *string // contains filtered or unexported fields }
Gets the Tags collection for a given resource.
type GetTagsOutput ¶
type GetTagsOutput struct { // The collection of tags. Each tag element is associated with a given resource. Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
The collection of tags. Each tag element is associated with a given resource.
type GetUsageAPIClient ¶ added in v0.30.0
type GetUsageAPIClient interface {
GetUsage(context.Context, *GetUsageInput, ...func(*Options)) (*GetUsageOutput, error)
}
GetUsageAPIClient is a client that implements the GetUsage operation.
type GetUsageInput ¶
type GetUsageInput struct { // The ending date (e.g., 2016-12-31) of the usage data. // // This member is required. EndDate *string // The starting date (e.g., 2016-01-01) of the usage data. // // This member is required. StartDate *string // The Id of the usage plan associated with the usage data. // // This member is required. UsagePlanId *string // The Id of the API key associated with the resultant usage data. KeyId *string // The maximum number of returned results per page. The default value is 25 and // the maximum value is 500. Limit *int32 // The current pagination position in the paged result set. Position *string // contains filtered or unexported fields }
The GET request to get the usage data of a usage plan in a specified time interval.
type GetUsageOutput ¶
type GetUsageOutput struct { // The ending date of the usage data. EndDate *string // The usage data, as daily logs of used and remaining quotas, over the specified // time interval indexed over the API keys in a usage plan. For example, {..., // "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]} , where {api_key} // stands for an API key value and the daily log entry is of the format [used // quota, remaining quota] . Items map[string][][]int64 // The current pagination position in the paged result set. Position *string // The starting date of the usage data. StartDate *string // The plan Id associated with this usage data. UsagePlanId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents the usage data of a usage plan.
type GetUsagePaginator ¶ added in v0.30.0
type GetUsagePaginator struct {
// contains filtered or unexported fields
}
GetUsagePaginator is a paginator for GetUsage
func NewGetUsagePaginator ¶ added in v0.30.0
func NewGetUsagePaginator(client GetUsageAPIClient, params *GetUsageInput, optFns ...func(*GetUsagePaginatorOptions)) *GetUsagePaginator
NewGetUsagePaginator returns a new GetUsagePaginator
func (*GetUsagePaginator) HasMorePages ¶ added in v0.30.0
func (p *GetUsagePaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*GetUsagePaginator) NextPage ¶ added in v0.30.0
func (p *GetUsagePaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetUsageOutput, error)
NextPage retrieves the next GetUsage page.
type GetUsagePaginatorOptions ¶ added in v0.30.0
type GetUsagePaginatorOptions struct { // The maximum number of returned results per page. The default value is 25 and // the maximum value is 500. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
GetUsagePaginatorOptions is the paginator options for GetUsage
type GetUsagePlanInput ¶
type GetUsagePlanInput struct { // The identifier of the UsagePlan resource to be retrieved. // // This member is required. UsagePlanId *string // contains filtered or unexported fields }
The GET request to get a usage plan of a given plan identifier.
type GetUsagePlanKeyInput ¶
type GetUsagePlanKeyInput struct { // The key Id of the to-be-retrieved UsagePlanKey resource representing a plan // customer. // // This member is required. KeyId *string // The Id of the UsagePlan resource representing the usage plan containing the // to-be-retrieved UsagePlanKey resource representing a plan customer. // // This member is required. UsagePlanId *string // contains filtered or unexported fields }
The GET request to get a usage plan key of a given key identifier.
type GetUsagePlanKeyOutput ¶
type GetUsagePlanKeyOutput struct { // The Id of a usage plan key. Id *string // The name of a usage plan key. Name *string // The type of a usage plan key. Currently, the valid key type is API_KEY . Type *string // The value of a usage plan key. Value *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents a usage plan key to identify a plan customer.
type GetUsagePlanKeysAPIClient ¶ added in v0.30.0
type GetUsagePlanKeysAPIClient interface {
GetUsagePlanKeys(context.Context, *GetUsagePlanKeysInput, ...func(*Options)) (*GetUsagePlanKeysOutput, error)
}
GetUsagePlanKeysAPIClient is a client that implements the GetUsagePlanKeys operation.
type GetUsagePlanKeysInput ¶
type GetUsagePlanKeysInput struct { // The Id of the UsagePlan resource representing the usage plan containing the // to-be-retrieved UsagePlanKey resource representing a plan customer. // // This member is required. UsagePlanId *string // The maximum number of returned results per page. The default value is 25 and // the maximum value is 500. Limit *int32 // A query parameter specifying the name of the to-be-returned usage plan keys. NameQuery *string // The current pagination position in the paged result set. Position *string // contains filtered or unexported fields }
The GET request to get all the usage plan keys representing the API keys added to a specified usage plan.
type GetUsagePlanKeysOutput ¶
type GetUsagePlanKeysOutput struct { // The current page of elements from this collection. Items []types.UsagePlanKey // The current pagination position in the paged result set. Position *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents the collection of usage plan keys added to usage plans for the associated API keys and, possibly, other types of keys.
type GetUsagePlanKeysPaginator ¶ added in v0.30.0
type GetUsagePlanKeysPaginator struct {
// contains filtered or unexported fields
}
GetUsagePlanKeysPaginator is a paginator for GetUsagePlanKeys
func NewGetUsagePlanKeysPaginator ¶ added in v0.30.0
func NewGetUsagePlanKeysPaginator(client GetUsagePlanKeysAPIClient, params *GetUsagePlanKeysInput, optFns ...func(*GetUsagePlanKeysPaginatorOptions)) *GetUsagePlanKeysPaginator
NewGetUsagePlanKeysPaginator returns a new GetUsagePlanKeysPaginator
func (*GetUsagePlanKeysPaginator) HasMorePages ¶ added in v0.30.0
func (p *GetUsagePlanKeysPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*GetUsagePlanKeysPaginator) NextPage ¶ added in v0.30.0
func (p *GetUsagePlanKeysPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetUsagePlanKeysOutput, error)
NextPage retrieves the next GetUsagePlanKeys page.
type GetUsagePlanKeysPaginatorOptions ¶ added in v0.30.0
type GetUsagePlanKeysPaginatorOptions struct { // The maximum number of returned results per page. The default value is 25 and // the maximum value is 500. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
GetUsagePlanKeysPaginatorOptions is the paginator options for GetUsagePlanKeys
type GetUsagePlanOutput ¶
type GetUsagePlanOutput struct { // The associated API stages of a usage plan. ApiStages []types.ApiStage // The description of a usage plan. Description *string // The identifier of a UsagePlan resource. Id *string // The name of a usage plan. Name *string // The Amazon Web Services Marketplace product identifier to associate with the // usage plan as a SaaS product on the Amazon Web Services Marketplace. ProductCode *string // The target maximum number of permitted requests per a given unit time interval. Quota *types.QuotaSettings // The collection of tags. Each tag element is associated with a given resource. Tags map[string]string // A map containing method level throttling information for API stage in a usage // plan. Throttle *types.ThrottleSettings // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents a usage plan used to specify who can assess associated API stages. Optionally, target request rate and quota limits can be set. In some cases clients can exceed the targets that you set. Don’t rely on usage plans to control costs. Consider using Amazon Web Services Budgetsto monitor costs and WAF to manage API requests.
type GetUsagePlansAPIClient ¶ added in v0.30.0
type GetUsagePlansAPIClient interface {
GetUsagePlans(context.Context, *GetUsagePlansInput, ...func(*Options)) (*GetUsagePlansOutput, error)
}
GetUsagePlansAPIClient is a client that implements the GetUsagePlans operation.
type GetUsagePlansInput ¶
type GetUsagePlansInput struct { // The identifier of the API key associated with the usage plans. KeyId *string // The maximum number of returned results per page. The default value is 25 and // the maximum value is 500. Limit *int32 // The current pagination position in the paged result set. Position *string // contains filtered or unexported fields }
The GET request to get all the usage plans of the caller's account.
type GetUsagePlansOutput ¶
type GetUsagePlansOutput struct { // The current page of elements from this collection. Items []types.UsagePlan // The current pagination position in the paged result set. Position *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents a collection of usage plans for an AWS account.
type GetUsagePlansPaginator ¶ added in v0.30.0
type GetUsagePlansPaginator struct {
// contains filtered or unexported fields
}
GetUsagePlansPaginator is a paginator for GetUsagePlans
func NewGetUsagePlansPaginator ¶ added in v0.30.0
func NewGetUsagePlansPaginator(client GetUsagePlansAPIClient, params *GetUsagePlansInput, optFns ...func(*GetUsagePlansPaginatorOptions)) *GetUsagePlansPaginator
NewGetUsagePlansPaginator returns a new GetUsagePlansPaginator
func (*GetUsagePlansPaginator) HasMorePages ¶ added in v0.30.0
func (p *GetUsagePlansPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*GetUsagePlansPaginator) NextPage ¶ added in v0.30.0
func (p *GetUsagePlansPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetUsagePlansOutput, error)
NextPage retrieves the next GetUsagePlans page.
type GetUsagePlansPaginatorOptions ¶ added in v0.30.0
type GetUsagePlansPaginatorOptions struct { // The maximum number of returned results per page. The default value is 25 and // the maximum value is 500. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
GetUsagePlansPaginatorOptions is the paginator options for GetUsagePlans
type GetVpcLinkInput ¶
type GetVpcLinkInput struct { // The identifier of the VpcLink. It is used in an Integration to reference this // VpcLink. // // This member is required. VpcLinkId *string // contains filtered or unexported fields }
Gets a specified VPC link under the caller's account in a region.
type GetVpcLinkOutput ¶
type GetVpcLinkOutput struct { // The description of the VPC link. Description *string // The identifier of the VpcLink. It is used in an Integration to reference this // VpcLink. Id *string // The name used to label and identify the VPC link. Name *string // The status of the VPC link. The valid values are AVAILABLE , PENDING , DELETING // , or FAILED . Deploying an API will wait if the status is PENDING and will fail // if the status is DELETING . Status types.VpcLinkStatus // A description about the VPC link status. StatusMessage *string // The collection of tags. Each tag element is associated with a given resource. Tags map[string]string // The ARN of the network load balancer of the VPC targeted by the VPC link. The // network load balancer must be owned by the same Amazon Web Services account of // the API owner. TargetArns []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
An API Gateway VPC link for a RestApi to access resources in an Amazon Virtual Private Cloud (VPC).
type GetVpcLinksAPIClient ¶ added in v0.30.0
type GetVpcLinksAPIClient interface {
GetVpcLinks(context.Context, *GetVpcLinksInput, ...func(*Options)) (*GetVpcLinksOutput, error)
}
GetVpcLinksAPIClient is a client that implements the GetVpcLinks operation.
type GetVpcLinksInput ¶
type GetVpcLinksInput struct { // The maximum number of returned results per page. The default value is 25 and // the maximum value is 500. Limit *int32 // The current pagination position in the paged result set. Position *string // contains filtered or unexported fields }
Gets the VpcLinks collection under the caller's account in a selected region.
type GetVpcLinksOutput ¶
type GetVpcLinksOutput struct { // The current page of elements from this collection. Items []types.VpcLink // The current pagination position in the paged result set. Position *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
The collection of VPC links under the caller's account in a region.
type GetVpcLinksPaginator ¶ added in v0.30.0
type GetVpcLinksPaginator struct {
// contains filtered or unexported fields
}
GetVpcLinksPaginator is a paginator for GetVpcLinks
func NewGetVpcLinksPaginator ¶ added in v0.30.0
func NewGetVpcLinksPaginator(client GetVpcLinksAPIClient, params *GetVpcLinksInput, optFns ...func(*GetVpcLinksPaginatorOptions)) *GetVpcLinksPaginator
NewGetVpcLinksPaginator returns a new GetVpcLinksPaginator
func (*GetVpcLinksPaginator) HasMorePages ¶ added in v0.30.0
func (p *GetVpcLinksPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*GetVpcLinksPaginator) NextPage ¶ added in v0.30.0
func (p *GetVpcLinksPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetVpcLinksOutput, error)
NextPage retrieves the next GetVpcLinks page.
type GetVpcLinksPaginatorOptions ¶ added in v0.30.0
type GetVpcLinksPaginatorOptions struct { // The maximum number of returned results per page. The default value is 25 and // the maximum value is 500. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
GetVpcLinksPaginatorOptions is the paginator options for GetVpcLinks
type HTTPSignerV4 ¶
type ImportApiKeysInput ¶
type ImportApiKeysInput struct { // The payload of the POST request to import API keys. For the payload format, see // API Key File Format. // // This member is required. Body []byte // A query parameter to specify the input format to imported API keys. Currently, // only the csv format is supported. // // This member is required. Format types.ApiKeysFormat // A query parameter to indicate whether to rollback ApiKey importation ( true ) or // not ( false ) when error is encountered. FailOnWarnings bool // contains filtered or unexported fields }
The POST request to import API keys from an external source, such as a CSV-formatted file.
type ImportApiKeysOutput ¶
type ImportApiKeysOutput struct { // A list of all the ApiKey identifiers. Ids []string // A list of warning messages. Warnings []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
The identifier of an ApiKey used in a UsagePlan.
type ImportDocumentationPartsInput ¶
type ImportDocumentationPartsInput struct { // Raw byte array representing the to-be-imported documentation parts. To import // from an OpenAPI file, this is a JSON object. // // This member is required. Body []byte // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // A query parameter to specify whether to rollback the documentation importation ( // true ) or not ( false ) when a warning is encountered. The default value is // false . FailOnWarnings bool // A query parameter to indicate whether to overwrite ( overwrite ) any existing // DocumentationParts definition or to merge ( merge ) the new definition into the // existing one. The default value is merge . Mode types.PutMode // contains filtered or unexported fields }
Import documentation parts from an external (e.g., OpenAPI) definition file.
type ImportDocumentationPartsOutput ¶
type ImportDocumentationPartsOutput struct { // A list of the returned documentation part identifiers. Ids []string // A list of warning messages reported during import of documentation parts. Warnings []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
A collection of the imported DocumentationPart identifiers.
type ImportRestApiInput ¶
type ImportRestApiInput struct { // The POST request body containing external API definitions. Currently, only // OpenAPI definition JSON/YAML files are supported. The maximum size of the API // definition file is 6MB. // // This member is required. Body []byte // A query parameter to indicate whether to rollback the API creation ( true ) or // not ( false ) when a warning is encountered. The default value is false . FailOnWarnings bool // A key-value map of context-specific query string parameters specifying the // behavior of different API importing operations. The following shows // operation-specific parameters and their supported values. // // To exclude DocumentationParts from the import, set parameters as // ignore=documentation . // // To configure the endpoint type, set parameters as // endpointConfigurationTypes=EDGE , endpointConfigurationTypes=REGIONAL , or // endpointConfigurationTypes=PRIVATE . The default endpoint type is EDGE . // // To handle imported basepath , set parameters as basepath=ignore , // basepath=prepend or basepath=split . Parameters map[string]string // contains filtered or unexported fields }
A POST request to import an API to API Gateway using an input of an API definition file.
type ImportRestApiOutput ¶
type ImportRestApiOutput struct { // The source of the API key for metering requests according to a usage plan. // Valid values are: > HEADER to read the API key from the X-API-Key header of a // request. AUTHORIZER to read the API key from the UsageIdentifierKey from a // custom authorizer. ApiKeySource types.ApiKeySourceType // The list of binary media types supported by the RestApi. By default, the // RestApi supports only UTF-8-encoded text payloads. BinaryMediaTypes []string // The timestamp when the API was created. CreatedDate *time.Time // The API's description. Description *string // Specifies whether clients can invoke your API by using the default execute-api // endpoint. By default, clients can invoke your API with the default // https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that // clients use a custom domain name to invoke your API, disable the default // endpoint. DisableExecuteApiEndpoint bool // The endpoint configuration of this RestApi showing the endpoint types of the // API. EndpointConfiguration *types.EndpointConfiguration // The API's identifier. This identifier is unique across all of your APIs in API // Gateway. Id *string // A nullable integer that is used to enable compression (with non-negative // between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a // null value) on an API. When compression is enabled, compression or decompression // is not applied on the payload if the payload size is smaller than this value. // Setting it to zero allows compression for any payload size. MinimumCompressionSize *int32 // The API's name. Name *string // A stringified JSON policy document that applies to this RestApi regardless of // the caller and Method configuration. Policy *string // The API's root resource ID. RootResourceId *string // The collection of tags. Each tag element is associated with a given resource. Tags map[string]string // A version identifier for the API. Version *string // The warning messages reported when failonwarnings is turned on during API // import. Warnings []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents a REST API.
type Options ¶
type Options struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error // The optional application specific identifier appended to the User-Agent header. AppID string // This endpoint will be given as input to an EndpointResolverV2. It is used for // providing a custom base endpoint that is subject to modifications by the // processing EndpointResolverV2. BaseEndpoint *string // Configures the events that will be sent to the configured logger. ClientLogMode aws.ClientLogMode // The credentials object to use when signing requests. Credentials aws.CredentialsProvider // The configuration DefaultsMode that the SDK should use when constructing the // clients initial default settings. DefaultsMode aws.DefaultsMode // The endpoint options to be used when attempting to resolve an endpoint. EndpointOptions EndpointResolverOptions // The service endpoint resolver. // // Deprecated: Deprecated: EndpointResolver and WithEndpointResolver. Providing a // value for this field will likely prevent you from using any endpoint-related // service features released after the introduction of EndpointResolverV2 and // BaseEndpoint. // // To migrate an EndpointResolver implementation that uses a custom endpoint, set // the client option BaseEndpoint instead. EndpointResolver EndpointResolver // Resolves the endpoint used for a particular service operation. This should be // used over the deprecated EndpointResolver. EndpointResolverV2 EndpointResolverV2 // Signature Version 4 (SigV4) Signer HTTPSignerV4 HTTPSignerV4 // The logger writer interface to write logging messages to. Logger logging.Logger // The client meter provider. MeterProvider metrics.MeterProvider // The region to send requests to. (Required) Region string // RetryMaxAttempts specifies the maximum number attempts an API client will call // an operation that fails with a retryable error. A value of 0 is ignored, and // will not be used to configure the API client created default retryer, or modify // per operation call's retry max attempts. // // If specified in an operation call's functional options with a value that is // different than the constructed client's Options, the Client's Retryer will be // wrapped to use the operation's specific RetryMaxAttempts value. RetryMaxAttempts int // RetryMode specifies the retry mode the API client will be created with, if // Retryer option is not also specified. // // When creating a new API Clients this member will only be used if the Retryer // Options member is nil. This value will be ignored if Retryer is not nil. // // Currently does not support per operation call overrides, may in the future. RetryMode aws.RetryMode // Retryer guides how HTTP requests should be retried in case of recoverable // failures. When nil the API client will use a default retryer. The kind of // default retry created by the API client can be changed with the RetryMode // option. Retryer aws.Retryer // The RuntimeEnvironment configuration, only populated if the DefaultsMode is set // to DefaultsModeAuto and is initialized using config.LoadDefaultConfig . You // should not populate this structure programmatically, or rely on the values here // within your applications. RuntimeEnvironment aws.RuntimeEnvironment // The client tracer provider. TracerProvider tracing.TracerProvider // The HTTP client to invoke API calls with. Defaults to client's default HTTP // implementation if nil. HTTPClient HTTPClient // The auth scheme resolver which determines how to authenticate for each // operation. AuthSchemeResolver AuthSchemeResolver // The list of auth schemes supported by the client. AuthSchemes []smithyhttp.AuthScheme // contains filtered or unexported fields }
func (Options) GetIdentityResolver ¶ added in v1.20.2
func (o Options) GetIdentityResolver(schemeID string) smithyauth.IdentityResolver
type PutGatewayResponseInput ¶
type PutGatewayResponseInput struct { // The response type of the associated GatewayResponse // // This member is required. ResponseType types.GatewayResponseType // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // Response parameters (paths, query strings and headers) of the GatewayResponse // as a string-to-string map of key-value pairs. ResponseParameters map[string]string // Response templates of the GatewayResponse as a string-to-string map of // key-value pairs. ResponseTemplates map[string]string // The HTTP status code of the GatewayResponse. StatusCode *string // contains filtered or unexported fields }
Creates a customization of a GatewayResponse of a specified response type and status code on the given RestApi.
type PutGatewayResponseOutput ¶
type PutGatewayResponseOutput struct { // A Boolean flag to indicate whether this GatewayResponse is the default gateway // response ( true ) or not ( false ). A default gateway response is one generated // by API Gateway without any customization by an API developer. DefaultResponse bool // Response parameters (paths, query strings and headers) of the GatewayResponse // as a string-to-string map of key-value pairs. ResponseParameters map[string]string // Response templates of the GatewayResponse as a string-to-string map of // key-value pairs. ResponseTemplates map[string]string // The response type of the associated GatewayResponse. ResponseType types.GatewayResponseType // The HTTP status code for this GatewayResponse. StatusCode *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
A gateway response of a given response type and status code, with optional response parameters and mapping templates.
type PutIntegrationInput ¶
type PutIntegrationInput struct { // Specifies the HTTP method for the integration. // // This member is required. HttpMethod *string // Specifies a put integration request's resource ID. // // This member is required. ResourceId *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // Specifies a put integration input's type. // // This member is required. Type types.IntegrationType // A list of request parameters whose values API Gateway caches. To be valid // values for cacheKeyParameters , these parameters must also be specified for // Method requestParameters . CacheKeyParameters []string // Specifies a group of related cached parameters. By default, API Gateway uses // the resource ID as the cacheNamespace . You can specify the same cacheNamespace // across resources to return the same cached data for requests to different // resources. CacheNamespace *string // The ID of the VpcLink used for the integration. Specify this value only if you // specify VPC_LINK as the connection type. ConnectionId *string // The type of the network connection to the integration endpoint. The valid value // is INTERNET for connections through the public routable internet or VPC_LINK // for private connections between API Gateway and a network load balancer in a // VPC. The default value is INTERNET . ConnectionType types.ConnectionType // Specifies how to handle request payload content type conversions. Supported // values are CONVERT_TO_BINARY and CONVERT_TO_TEXT , with the following behaviors: // // If this property is not defined, the request payload will be passed through // from the method request to integration request without modification, provided // that the passthroughBehavior is configured to support payload pass-through. ContentHandling types.ContentHandlingStrategy // Specifies whether credentials are required for a put integration. Credentials *string // The HTTP method for the integration. IntegrationHttpMethod *string // Specifies the pass-through behavior for incoming requests based on the // Content-Type header in the request, and the available mapping templates // specified as the requestTemplates property on the Integration resource. There // are three valid values: WHEN_NO_MATCH , WHEN_NO_TEMPLATES , and NEVER . PassthroughBehavior *string // A key-value map specifying request parameters that are passed from the method // request to the back end. The key is an integration request parameter name and // the associated value is a method request parameter value or static value that // must be enclosed within single quotes and pre-encoded as required by the back // end. The method request parameter value must match the pattern of // method.request.{location}.{name} , where location is querystring , path , or // header and name must be a valid and unique method request parameter name. RequestParameters map[string]string // Represents a map of Velocity templates that are applied on the request payload // based on the value of the Content-Type header sent by the client. The content // type value is the key in this map, and the template (as a String) is the value. RequestTemplates map[string]string // Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 // milliseconds or 29 seconds. TimeoutInMillis *int32 // Specifies the TLS configuration for an integration. TlsConfig *types.TlsConfig // Specifies Uniform Resource Identifier (URI) of the integration endpoint. For // HTTP or HTTP_PROXY integrations, the URI must be a fully formed, encoded // HTTP(S) URL according to the RFC-3986 specification, for either standard // integration, where connectionType is not VPC_LINK , or private integration, // where connectionType is VPC_LINK . For a private HTTP integration, the URI is // not used for routing. For AWS or AWS_PROXY integrations, the URI is of the form // arn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{service_api // }. Here, {Region} is the API Gateway region (e.g., us-east-1); {service} is the // name of the integrated Amazon Web Services service (e.g., s3); and {subdomain} // is a designated subdomain supported by certain Amazon Web Services service for // fast host-name lookup. action can be used for an Amazon Web Services service // action-based API, using an Action={name}&{p1}={v1}&p2={v2}... query string. The // ensuing {service_api} refers to a supported action {name} plus any required // input parameters. Alternatively, path can be used for an Amazon Web Services // service path-based API. The ensuing service_api refers to the path to an Amazon // Web Services service resource, including the region of the integrated Amazon Web // Services service, if applicable. For example, for integration with the S3 API of // GetObject , the uri can be either // arn:aws:apigateway:us-west-2:s3:action/GetObject&Bucket={bucket}&Key={key} or // arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key} . Uri *string // contains filtered or unexported fields }
Sets up a method's integration.
type PutIntegrationOutput ¶
type PutIntegrationOutput struct { // A list of request parameters whose values API Gateway caches. To be valid // values for cacheKeyParameters , these parameters must also be specified for // Method requestParameters . CacheKeyParameters []string // Specifies a group of related cached parameters. By default, API Gateway uses // the resource ID as the cacheNamespace . You can specify the same cacheNamespace // across resources to return the same cached data for requests to different // resources. CacheNamespace *string // The ID of the VpcLink used for the integration when connectionType=VPC_LINK and // undefined, otherwise. ConnectionId *string // The type of the network connection to the integration endpoint. The valid value // is INTERNET for connections through the public routable internet or VPC_LINK // for private connections between API Gateway and a network load balancer in a // VPC. The default value is INTERNET . ConnectionType types.ConnectionType // Specifies how to handle request payload content type conversions. Supported // values are CONVERT_TO_BINARY and CONVERT_TO_TEXT , with the following behaviors: // // If this property is not defined, the request payload will be passed through // from the method request to integration request without modification, provided // that the passthroughBehavior is configured to support payload pass-through. ContentHandling types.ContentHandlingStrategy // Specifies the credentials required for the integration, if any. For AWS // integrations, three options are available. To specify an IAM Role for API // Gateway to assume, use the role's Amazon Resource Name (ARN). To require that // the caller's identity be passed through from the request, specify the string // arn:aws:iam::\*:user/\* . To use resource-based permissions on supported Amazon // Web Services services, specify null. Credentials *string // Specifies the integration's HTTP method type. For the Type property, if you // specify MOCK , this property is optional. For Lambda integrations, you must set // the integration method to POST . For all other types, you must specify this // property. HttpMethod *string // Specifies the integration's responses. IntegrationResponses map[string]types.IntegrationResponse // Specifies how the method request body of an unmapped content type will be // passed through the integration request to the back end without transformation. A // content type is unmapped if no mapping template is defined in the integration or // the content type does not match any of the mapped content types, as specified in // requestTemplates . The valid value is one of the following: WHEN_NO_MATCH : // passes the method request body through the integration request to the back end // without transformation when the method request content type does not match any // content type associated with the mapping templates defined in the integration // request. WHEN_NO_TEMPLATES : passes the method request body through the // integration request to the back end without transformation when no mapping // template is defined in the integration request. If a template is defined when // this option is selected, the method request of an unmapped content-type will be // rejected with an HTTP 415 Unsupported Media Type response. NEVER : rejects the // method request with an HTTP 415 Unsupported Media Type response when either the // method request content type does not match any content type associated with the // mapping templates defined in the integration request or no mapping template is // defined in the integration request. PassthroughBehavior *string // A key-value map specifying request parameters that are passed from the method // request to the back end. The key is an integration request parameter name and // the associated value is a method request parameter value or static value that // must be enclosed within single quotes and pre-encoded as required by the back // end. The method request parameter value must match the pattern of // method.request.{location}.{name} , where location is querystring , path , or // header and name must be a valid and unique method request parameter name. RequestParameters map[string]string // Represents a map of Velocity templates that are applied on the request payload // based on the value of the Content-Type header sent by the client. The content // type value is the key in this map, and the template (as a String) is the value. RequestTemplates map[string]string // Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 // milliseconds or 29 seconds. TimeoutInMillis int32 // Specifies the TLS configuration for an integration. TlsConfig *types.TlsConfig // Specifies an API method integration type. The valid value is one of the // following: // // For the HTTP and HTTP proxy integrations, each integration can specify a // protocol ( http/https ), port and path. Standard 80 and 443 ports are supported // as well as custom ports above 1024. An HTTP or HTTP proxy integration with a // connectionType of VPC_LINK is referred to as a private integration and uses a // VpcLink to connect API Gateway to a network load balancer of a VPC. Type types.IntegrationType // Specifies Uniform Resource Identifier (URI) of the integration endpoint. // // For HTTP or HTTP_PROXY integrations, the URI must be a fully formed, encoded // HTTP(S) URL according to the RFC-3986 specification for standard integrations. // If connectionType is VPC_LINK specify the Network Load Balancer DNS name. For // AWS or AWS_PROXY integrations, the URI is of the form // arn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{service_api} // . Here, {Region} is the API Gateway region (e.g., us-east-1); {service} is the // name of the integrated Amazon Web Services service (e.g., s3); and {subdomain} // is a designated subdomain supported by certain Amazon Web Services service for // fast host-name lookup. action can be used for an Amazon Web Services service // action-based API, using an Action={name}&{p1}={v1}&p2={v2}... query string. The // ensuing {service_api} refers to a supported action {name} plus any required // input parameters. Alternatively, path can be used for an Amazon Web Services // service path-based API. The ensuing service_api refers to the path to an Amazon // Web Services service resource, including the region of the integrated Amazon Web // Services service, if applicable. For example, for integration with the S3 API of // GetObject, the uri can be either // arn:aws:apigateway:us-west-2:s3:action/GetObject&Bucket={bucket}&Key={key} or // arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key} Uri *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents an HTTP , HTTP_PROXY , AWS , AWS_PROXY , or Mock integration.
type PutIntegrationResponseInput ¶
type PutIntegrationResponseInput struct { // Specifies a put integration response request's HTTP method. // // This member is required. HttpMethod *string // Specifies a put integration response request's resource identifier. // // This member is required. ResourceId *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // Specifies the status code that is used to map the integration response to an // existing MethodResponse. // // This member is required. StatusCode *string // Specifies how to handle response payload content type conversions. Supported // values are CONVERT_TO_BINARY and CONVERT_TO_TEXT , with the following behaviors: // // If this property is not defined, the response payload will be passed through // from the integration response to the method response without modification. ContentHandling types.ContentHandlingStrategy // A key-value map specifying response parameters that are passed to the method // response from the back end. The key is a method response header parameter name // and the mapped value is an integration response header value, a static value // enclosed within a pair of single quotes, or a JSON expression from the // integration response body. The mapping key must match the pattern of // method.response.header.{name} , where name is a valid and unique header name. // The mapped non-static value must match the pattern of // integration.response.header.{name} or // integration.response.body.{JSON-expression} , where name must be a valid and // unique response header name and JSON-expression a valid JSON expression without // the $ prefix. ResponseParameters map[string]string // Specifies a put integration response's templates. ResponseTemplates map[string]string // Specifies the selection pattern of a put integration response. SelectionPattern *string // contains filtered or unexported fields }
Represents a put integration response request.
type PutIntegrationResponseOutput ¶
type PutIntegrationResponseOutput struct { // Specifies how to handle response payload content type conversions. Supported // values are CONVERT_TO_BINARY and CONVERT_TO_TEXT , with the following behaviors: // // If this property is not defined, the response payload will be passed through // from the integration response to the method response without modification. ContentHandling types.ContentHandlingStrategy // A key-value map specifying response parameters that are passed to the method // response from the back end. The key is a method response header parameter name // and the mapped value is an integration response header value, a static value // enclosed within a pair of single quotes, or a JSON expression from the // integration response body. The mapping key must match the pattern of // method.response.header.{name} , where name is a valid and unique header name. // The mapped non-static value must match the pattern of // integration.response.header.{name} or // integration.response.body.{JSON-expression} , where name is a valid and unique // response header name and JSON-expression is a valid JSON expression without the // $ prefix. ResponseParameters map[string]string // Specifies the templates used to transform the integration response body. // Response templates are represented as a key/value map, with a content-type as // the key and a template as the value. ResponseTemplates map[string]string // Specifies the regular expression (regex) pattern used to choose an integration // response based on the response from the back end. For example, if the success // response returns nothing and the error response returns some string, you could // use the .+ regex to match error response. However, make sure that the error // response does not contain any newline ( \n ) character in such cases. If the // back end is an Lambda function, the Lambda function error header is matched. For // all other HTTP and Amazon Web Services back ends, the HTTP status code is // matched. SelectionPattern *string // Specifies the status code that is used to map the integration response to an // existing MethodResponse. StatusCode *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents an integration response. The status code must map to an existing MethodResponse, and parameters and templates can be used to transform the back-end response.
type PutMethodInput ¶
type PutMethodInput struct { // The method's authorization type. Valid values are NONE for open access, AWS_IAM // for using AWS IAM permissions, CUSTOM for using a custom authorizer, or // COGNITO_USER_POOLS for using a Cognito user pool. // // This member is required. AuthorizationType *string // Specifies the method request's HTTP method type. // // This member is required. HttpMethod *string // The Resource identifier for the new Method resource. // // This member is required. ResourceId *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // Specifies whether the method required a valid ApiKey. ApiKeyRequired bool // A list of authorization scopes configured on the method. The scopes are used // with a COGNITO_USER_POOLS authorizer to authorize the method invocation. The // authorization works by matching the method scopes against the scopes parsed from // the access token in the incoming request. The method invocation is authorized if // any method scopes matches a claimed scope in the access token. Otherwise, the // invocation is not authorized. When the method scope is configured, the client // must provide an access token instead of an identity token for authorization // purposes. AuthorizationScopes []string // Specifies the identifier of an Authorizer to use on this Method, if the type is // CUSTOM or COGNITO_USER_POOLS. The authorizer identifier is generated by API // Gateway when you created the authorizer. AuthorizerId *string // A human-friendly operation identifier for the method. For example, you can // assign the operationName of ListPets for the GET /pets method in the PetStore // example. OperationName *string // Specifies the Model resources used for the request's content type. Request // models are represented as a key/value map, with a content type as the key and a // Model name as the value. RequestModels map[string]string // A key-value map defining required or optional method request parameters that // can be accepted by API Gateway. A key defines a method request parameter name // matching the pattern of method.request.{location}.{name} , where location is // querystring , path , or header and name is a valid and unique parameter name. // The value associated with the key is a Boolean flag indicating whether the // parameter is required ( true ) or optional ( false ). The method request // parameter names defined here are available in Integration to be mapped to // integration request parameters or body-mapping templates. RequestParameters map[string]bool // The identifier of a RequestValidator for validating the method request. RequestValidatorId *string // contains filtered or unexported fields }
Request to add a method to an existing Resource resource.
type PutMethodOutput ¶
type PutMethodOutput struct { // A boolean flag specifying whether a valid ApiKey is required to invoke this // method. ApiKeyRequired *bool // A list of authorization scopes configured on the method. The scopes are used // with a COGNITO_USER_POOLS authorizer to authorize the method invocation. The // authorization works by matching the method scopes against the scopes parsed from // the access token in the incoming request. The method invocation is authorized if // any method scopes matches a claimed scope in the access token. Otherwise, the // invocation is not authorized. When the method scope is configured, the client // must provide an access token instead of an identity token for authorization // purposes. AuthorizationScopes []string // The method's authorization type. Valid values are NONE for open access, AWS_IAM // for using AWS IAM permissions, CUSTOM for using a custom authorizer, or // COGNITO_USER_POOLS for using a Cognito user pool. AuthorizationType *string // The identifier of an Authorizer to use on this method. The authorizationType // must be CUSTOM . AuthorizerId *string // The method's HTTP verb. HttpMethod *string // Gets the method's integration responsible for passing the client-submitted // request to the back end and performing necessary transformations to make the // request compliant with the back end. MethodIntegration *types.Integration // Gets a method response associated with a given HTTP status code. MethodResponses map[string]types.MethodResponse // A human-friendly operation identifier for the method. For example, you can // assign the operationName of ListPets for the GET /pets method in the PetStore // example. OperationName *string // A key-value map specifying data schemas, represented by Model resources, (as // the mapped value) of the request payloads of given content types (as the mapping // key). RequestModels map[string]string // A key-value map defining required or optional method request parameters that // can be accepted by API Gateway. A key is a method request parameter name // matching the pattern of method.request.{location}.{name} , where location is // querystring , path , or header and name is a valid and unique parameter name. // The value associated with the key is a Boolean flag indicating whether the // parameter is required ( true ) or optional ( false ). The method request // parameter names defined here are available in Integration to be mapped to // integration request parameters or templates. RequestParameters map[string]bool // The identifier of a RequestValidator for request validation. RequestValidatorId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents a client-facing interface by which the client calls the API to
access back-end resources. A Method resource is integrated with an Integration resource. Both consist of a request and one or more responses. The method request takes the client input that is passed to the back end through the integration request. A method response returns the output from the back end to the client through an integration response. A method request is embodied in a Method resource, whereas an integration request is embodied in an Integration resource. On the other hand, a method response is represented by a MethodResponse resource, whereas an integration response is represented by an IntegrationResponse resource.
type PutMethodResponseInput ¶
type PutMethodResponseInput struct { // The HTTP verb of the Method resource. // // This member is required. HttpMethod *string // The Resource identifier for the Method resource. // // This member is required. ResourceId *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // The method response's status code. // // This member is required. StatusCode *string // Specifies the Model resources used for the response's content type. Response // models are represented as a key/value map, with a content type as the key and a // Model name as the value. ResponseModels map[string]string // A key-value map specifying required or optional response parameters that API // Gateway can send back to the caller. A key defines a method response header name // and the associated value is a Boolean flag indicating whether the method // response parameter is required or not. The method response header names must // match the pattern of method.response.header.{name} , where name is a valid and // unique header name. The response parameter names defined here are available in // the integration response to be mapped from an integration response header // expressed in integration.response.header.{name} , a static value enclosed within // a pair of single quotes (e.g., 'application/json' ), or a JSON expression from // the back-end response payload in the form of // integration.response.body.{JSON-expression} , where JSON-expression is a valid // JSON expression without the $ prefix.) ResponseParameters map[string]bool // contains filtered or unexported fields }
Request to add a MethodResponse to an existing Method resource.
type PutMethodResponseOutput ¶
type PutMethodResponseOutput struct { // Specifies the Model resources used for the response's content-type. Response // models are represented as a key/value map, with a content-type as the key and a // Model name as the value. ResponseModels map[string]string // A key-value map specifying required or optional response parameters that API // Gateway can send back to the caller. A key defines a method response header and // the value specifies whether the associated method response header is required or // not. The expression of the key must match the pattern // method.response.header.{name} , where name is a valid and unique header name. // API Gateway passes certain integration response data to the method response // headers specified here according to the mapping you prescribe in the API's // IntegrationResponse. The integration response data that can be mapped include an // integration response header expressed in integration.response.header.{name} , a // static value enclosed within a pair of single quotes (e.g., 'application/json' // ), or a JSON expression from the back-end response payload in the form of // integration.response.body.{JSON-expression} , where JSON-expression is a valid // JSON expression without the $ prefix.) ResponseParameters map[string]bool // The method response's status code. StatusCode *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents a method response of a given HTTP status code returned to the client. The method response is passed from the back end through the associated integration response that can be transformed using a mapping template.
type PutRestApiInput ¶
type PutRestApiInput struct { // The PUT request body containing external API definitions. Currently, only // OpenAPI definition JSON/YAML files are supported. The maximum size of the API // definition file is 6MB. // // This member is required. Body []byte // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // A query parameter to indicate whether to rollback the API update ( true ) or not // ( false ) when a warning is encountered. The default value is false . FailOnWarnings bool // The mode query parameter to specify the update mode. Valid values are "merge" // and "overwrite". By default, the update mode is "merge". Mode types.PutMode // Custom header parameters as part of the request. For example, to exclude // DocumentationParts from an imported API, set ignore=documentation as a // parameters value, as in the AWS CLI command of aws apigateway import-rest-api // --parameters ignore=documentation --body // 'file:///path/to/imported-api-body.json' . Parameters map[string]string // contains filtered or unexported fields }
A PUT request to update an existing API, with external API definitions specified as the request body.
type PutRestApiOutput ¶
type PutRestApiOutput struct { // The source of the API key for metering requests according to a usage plan. // Valid values are: > HEADER to read the API key from the X-API-Key header of a // request. AUTHORIZER to read the API key from the UsageIdentifierKey from a // custom authorizer. ApiKeySource types.ApiKeySourceType // The list of binary media types supported by the RestApi. By default, the // RestApi supports only UTF-8-encoded text payloads. BinaryMediaTypes []string // The timestamp when the API was created. CreatedDate *time.Time // The API's description. Description *string // Specifies whether clients can invoke your API by using the default execute-api // endpoint. By default, clients can invoke your API with the default // https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that // clients use a custom domain name to invoke your API, disable the default // endpoint. DisableExecuteApiEndpoint bool // The endpoint configuration of this RestApi showing the endpoint types of the // API. EndpointConfiguration *types.EndpointConfiguration // The API's identifier. This identifier is unique across all of your APIs in API // Gateway. Id *string // A nullable integer that is used to enable compression (with non-negative // between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a // null value) on an API. When compression is enabled, compression or decompression // is not applied on the payload if the payload size is smaller than this value. // Setting it to zero allows compression for any payload size. MinimumCompressionSize *int32 // The API's name. Name *string // A stringified JSON policy document that applies to this RestApi regardless of // the caller and Method configuration. Policy *string // The API's root resource ID. RootResourceId *string // The collection of tags. Each tag element is associated with a given resource. Tags map[string]string // A version identifier for the API. Version *string // The warning messages reported when failonwarnings is turned on during API // import. Warnings []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents a REST API.
type RejectDomainNameAccessAssociationInput ¶ added in v1.28.0
type RejectDomainNameAccessAssociationInput struct { // The ARN of the domain name access association resource. // // This member is required. DomainNameAccessAssociationArn *string // The ARN of the domain name. // // This member is required. DomainNameArn *string // contains filtered or unexported fields }
type RejectDomainNameAccessAssociationOutput ¶ added in v1.28.0
type RejectDomainNameAccessAssociationOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ResolveEndpoint ¶
type ResolveEndpoint struct { Resolver EndpointResolver Options EndpointResolverOptions }
func (*ResolveEndpoint) HandleSerialize ¶
func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, )
func (*ResolveEndpoint) ID ¶
func (*ResolveEndpoint) ID() string
type TagResourceInput ¶
type TagResourceInput struct { // The ARN of a resource that can be tagged. // // This member is required. ResourceArn *string // The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The // tag key can be up to 128 characters and must not start with aws: . The tag value // can be up to 256 characters. // // This member is required. Tags map[string]string // contains filtered or unexported fields }
Adds or updates a tag on a given resource.
type TagResourceOutput ¶
type TagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type TestInvokeAuthorizerInput ¶
type TestInvokeAuthorizerInput struct { // Specifies a test invoke authorizer request's Authorizer ID. // // This member is required. AuthorizerId *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // A key-value map of additional context variables. AdditionalContext map[string]string // The simulated request body of an incoming invocation request. Body *string // A key-value map of headers to simulate an incoming invocation request. This is // where the incoming authorization token, or identity source, should be specified. Headers map[string]string // The headers as a map from string to list of values to simulate an incoming // invocation request. This is where the incoming authorization token, or identity // source, may be specified. MultiValueHeaders map[string][]string // The URI path, including query string, of the simulated invocation request. Use // this to specify path parameters and query string parameters. PathWithQueryString *string // A key-value map of stage variables to simulate an invocation on a deployed // Stage. StageVariables map[string]string // contains filtered or unexported fields }
Make a request to simulate the invocation of an Authorizer.
type TestInvokeAuthorizerOutput ¶
type TestInvokeAuthorizerOutput struct { // The authorization response. Authorization map[string][]string // The open identity claims, with any supported custom attributes, returned from // the Cognito Your User Pool configured for the API. Claims map[string]string // The HTTP status code that the client would have received. Value is 0 if the // authorizer succeeded. ClientStatus int32 // The execution latency, in ms, of the test authorizer request. Latency int64 // The API Gateway execution log for the test authorizer request. Log *string // The JSON policy document returned by the Authorizer Policy *string // The principal identity returned by the Authorizer PrincipalId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents the response of the test invoke request for a custom Authorizer
type TestInvokeMethodInput ¶
type TestInvokeMethodInput struct { // Specifies a test invoke method request's HTTP method. // // This member is required. HttpMethod *string // Specifies a test invoke method request's resource ID. // // This member is required. ResourceId *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // The simulated request body of an incoming invocation request. Body *string // A ClientCertificate identifier to use in the test invocation. API Gateway will // use the certificate when making the HTTPS request to the defined back-end // endpoint. ClientCertificateId *string // A key-value map of headers to simulate an incoming invocation request. Headers map[string]string // The headers as a map from string to list of values to simulate an incoming // invocation request. MultiValueHeaders map[string][]string // The URI path, including query string, of the simulated invocation request. Use // this to specify path parameters and query string parameters. PathWithQueryString *string // A key-value map of stage variables to simulate an invocation on a deployed // Stage. StageVariables map[string]string // contains filtered or unexported fields }
Make a request to simulate the invocation of a Method.
type TestInvokeMethodOutput ¶
type TestInvokeMethodOutput struct { // The body of the HTTP response. Body *string // The headers of the HTTP response. Headers map[string]string // The execution latency, in ms, of the test invoke request. Latency int64 // The API Gateway execution log for the test invoke request. Log *string // The headers of the HTTP response as a map from string to list of values. MultiValueHeaders map[string][]string // The HTTP status code. Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents the response of the test invoke request in the HTTP method.
type UntagResourceInput ¶
type UntagResourceInput struct { // The ARN of a resource that can be tagged. // // This member is required. ResourceArn *string // The Tag keys to delete. // // This member is required. TagKeys []string // contains filtered or unexported fields }
Removes a tag from a given resource.
type UntagResourceOutput ¶
type UntagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type UpdateAccountInput ¶
type UpdateAccountInput struct { // For more information about supported patch operations, see [Patch Operations]. // // [Patch Operations]: https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html PatchOperations []types.PatchOperation // contains filtered or unexported fields }
Requests API Gateway to change information about the current Account resource.
type UpdateAccountOutput ¶
type UpdateAccountOutput struct { // The version of the API keys used for the account. ApiKeyVersion *string // The ARN of an Amazon CloudWatch role for the current Account. CloudwatchRoleArn *string // A list of features supported for the account. When usage plans are enabled, the // features list will include an entry of "UsagePlans" . Features []string // Specifies the API request limits configured for the current Account. ThrottleSettings *types.ThrottleSettings // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents an AWS account that is associated with API Gateway.
type UpdateApiKeyInput ¶
type UpdateApiKeyInput struct { // The identifier of the ApiKey resource to be updated. // // This member is required. ApiKey *string // For more information about supported patch operations, see [Patch Operations]. // // [Patch Operations]: https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html PatchOperations []types.PatchOperation // contains filtered or unexported fields }
A request to change information about an ApiKey resource.
type UpdateApiKeyOutput ¶
type UpdateApiKeyOutput struct { // The timestamp when the API Key was created. CreatedDate *time.Time // An Amazon Web Services Marketplace customer identifier, when integrating with // the Amazon Web Services SaaS Marketplace. CustomerId *string // The description of the API Key. Description *string // Specifies whether the API Key can be used by callers. Enabled bool // The identifier of the API Key. Id *string // The timestamp when the API Key was last updated. LastUpdatedDate *time.Time // The name of the API Key. Name *string // A list of Stage resources that are associated with the ApiKey resource. StageKeys []string // The collection of tags. Each tag element is associated with a given resource. Tags map[string]string // The value of the API Key. Value *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
A resource that can be distributed to callers for executing Method resources that require an API key. API keys can be mapped to any Stage on any RestApi, which indicates that the callers with the API key can make requests to that stage.
type UpdateAuthorizerInput ¶
type UpdateAuthorizerInput struct { // The identifier of the Authorizer resource. // // This member is required. AuthorizerId *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // For more information about supported patch operations, see [Patch Operations]. // // [Patch Operations]: https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html PatchOperations []types.PatchOperation // contains filtered or unexported fields }
Request to update an existing Authorizer resource.
type UpdateAuthorizerOutput ¶
type UpdateAuthorizerOutput struct { // Optional customer-defined field, used in OpenAPI imports and exports without // functional impact. AuthType *string // Specifies the required credentials as an IAM role for API Gateway to invoke the // authorizer. To specify an IAM role for API Gateway to assume, use the role's // Amazon Resource Name (ARN). To use resource-based permissions on the Lambda // function, specify null. AuthorizerCredentials *string // The TTL in seconds of cached authorizer results. If it equals 0, authorization // caching is disabled. If it is greater than 0, API Gateway will cache authorizer // responses. If this field is not set, the default value is 300. The maximum value // is 3600, or 1 hour. AuthorizerResultTtlInSeconds *int32 // Specifies the authorizer's Uniform Resource Identifier (URI). For TOKEN or // REQUEST authorizers, this must be a well-formed Lambda function URI, for // example, // arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:{account_id}:function:{lambda_function_name}/invocations // . In general, the URI has this form // arn:aws:apigateway:{region}:lambda:path/{service_api} , where {region} is the // same as the region hosting the Lambda function, path indicates that the // remaining substring in the URI should be treated as the path to the resource, // including the initial / . For Lambda functions, this is usually of the form // /2015-03-31/functions/[FunctionARN]/invocations . AuthorizerUri *string // The identifier for the authorizer resource. Id *string // The identity source for which authorization is requested. For a TOKEN or // COGNITO_USER_POOLS authorizer, this is required and specifies the request header // mapping expression for the custom header holding the authorization token // submitted by the client. For example, if the token header name is Auth , the // header mapping expression is method.request.header.Auth . For the REQUEST // authorizer, this is required when authorization caching is enabled. The value is // a comma-separated string of one or more mapping expressions of the specified // request parameters. For example, if an Auth header, a Name query string // parameter are defined as identity sources, this value is // method.request.header.Auth , method.request.querystring.Name . These parameters // will be used to derive the authorization caching key and to perform runtime // validation of the REQUEST authorizer by verifying all of the identity-related // request parameters are present, not null and non-empty. Only when this is true // does the authorizer invoke the authorizer Lambda function, otherwise, it returns // a 401 Unauthorized response without calling the Lambda function. The valid value // is a string of comma-separated mapping expressions of the specified request // parameters. When the authorization caching is not enabled, this property is // optional. IdentitySource *string // A validation expression for the incoming identity token. For TOKEN authorizers, // this value is a regular expression. For COGNITO_USER_POOLS authorizers, API // Gateway will match the aud field of the incoming token from the client against // the specified regular expression. It will invoke the authorizer's Lambda // function when there is a match. Otherwise, it will return a 401 Unauthorized // response without calling the Lambda function. The validation expression does not // apply to the REQUEST authorizer. IdentityValidationExpression *string // The name of the authorizer. Name *string // A list of the Amazon Cognito user pool ARNs for the COGNITO_USER_POOLS // authorizer. Each element is of this format: // arn:aws:cognito-idp:{region}:{account_id}:userpool/{user_pool_id} . For a TOKEN // or REQUEST authorizer, this is not defined. ProviderARNs []string // The authorizer type. Valid values are TOKEN for a Lambda function using a // single authorization token submitted in a custom header, REQUEST for a Lambda // function using incoming request parameters, and COGNITO_USER_POOLS for using an // Amazon Cognito user pool. Type types.AuthorizerType // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents an authorization layer for methods. If enabled on a method, API Gateway will activate the authorizer when a client calls the method.
type UpdateBasePathMappingInput ¶
type UpdateBasePathMappingInput struct { // The base path of the BasePathMapping resource to change. // // To specify an empty base path, set this parameter to '(none)' . // // This member is required. BasePath *string // The domain name of the BasePathMapping resource to change. // // This member is required. DomainName *string // The identifier for the domain name resource. Supported only for private custom // domain names. DomainNameId *string // For more information about supported patch operations, see [Patch Operations]. // // [Patch Operations]: https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html PatchOperations []types.PatchOperation // contains filtered or unexported fields }
A request to change information about the BasePathMapping resource.
type UpdateBasePathMappingOutput ¶
type UpdateBasePathMappingOutput struct { // The base path name that callers of the API must provide as part of the URL // after the domain name. BasePath *string // The string identifier of the associated RestApi. RestApiId *string // The name of the associated stage. Stage *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents the base path that callers of the API must provide as part of the URL after the domain name.
type UpdateClientCertificateInput ¶
type UpdateClientCertificateInput struct { // The identifier of the ClientCertificate resource to be updated. // // This member is required. ClientCertificateId *string // For more information about supported patch operations, see [Patch Operations]. // // [Patch Operations]: https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html PatchOperations []types.PatchOperation // contains filtered or unexported fields }
A request to change information about an ClientCertificate resource.
type UpdateClientCertificateOutput ¶
type UpdateClientCertificateOutput struct { // The identifier of the client certificate. ClientCertificateId *string // The timestamp when the client certificate was created. CreatedDate *time.Time // The description of the client certificate. Description *string // The timestamp when the client certificate will expire. ExpirationDate *time.Time // The PEM-encoded public key of the client certificate, which can be used to // configure certificate authentication in the integration endpoint . PemEncodedCertificate *string // The collection of tags. Each tag element is associated with a given resource. Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents a client certificate used to configure client-side SSL authentication while sending requests to the integration endpoint.
type UpdateDeploymentInput ¶
type UpdateDeploymentInput struct { // The replacement identifier for the Deployment resource to change information // about. // // This member is required. DeploymentId *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // For more information about supported patch operations, see [Patch Operations]. // // [Patch Operations]: https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html PatchOperations []types.PatchOperation // contains filtered or unexported fields }
Requests API Gateway to change information about a Deployment resource.
type UpdateDeploymentOutput ¶
type UpdateDeploymentOutput struct { // A summary of the RestApi at the date and time that the deployment resource was // created. ApiSummary map[string]map[string]types.MethodSnapshot // The date and time that the deployment resource was created. CreatedDate *time.Time // The description for the deployment resource. Description *string // The identifier for the deployment resource. Id *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
An immutable representation of a RestApi resource that can be called by users using Stages. A deployment must be associated with a Stage for it to be callable over the Internet.
type UpdateDocumentationPartInput ¶
type UpdateDocumentationPartInput struct { // The identifier of the to-be-updated documentation part. // // This member is required. DocumentationPartId *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // For more information about supported patch operations, see [Patch Operations]. // // [Patch Operations]: https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html PatchOperations []types.PatchOperation // contains filtered or unexported fields }
Updates an existing documentation part of a given API.
type UpdateDocumentationPartOutput ¶
type UpdateDocumentationPartOutput struct { // The DocumentationPart identifier, generated by API Gateway when the // DocumentationPart is created. Id *string // The location of the API entity to which the documentation applies. Valid fields // depend on the targeted API entity type. All the valid location fields are not // required. If not explicitly specified, a valid location field is treated as a // wildcard and associated documentation content may be inherited by matching // entities, unless overridden. Location *types.DocumentationPartLocation // A content map of API-specific key-value pairs describing the targeted API // entity. The map must be encoded as a JSON string, e.g., "{ \"description\": // \"The API does ...\" }" . Only OpenAPI-compliant documentation-related fields // from the properties map are exported and, hence, published as part of the API // entity definitions, while the original documentation parts are exported in a // OpenAPI extension of x-amazon-apigateway-documentation . Properties *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
A documentation part for a targeted API entity.
type UpdateDocumentationVersionInput ¶
type UpdateDocumentationVersionInput struct { // The version identifier of the to-be-updated documentation version. // // This member is required. DocumentationVersion *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // For more information about supported patch operations, see [Patch Operations]. // // [Patch Operations]: https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html PatchOperations []types.PatchOperation // contains filtered or unexported fields }
Updates an existing documentation version of an API.
type UpdateDocumentationVersionOutput ¶
type UpdateDocumentationVersionOutput struct { // The date when the API documentation snapshot is created. CreatedDate *time.Time // The description of the API documentation snapshot. Description *string // The version identifier of the API documentation snapshot. Version *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
A snapshot of the documentation of an API.
type UpdateDomainNameInput ¶
type UpdateDomainNameInput struct { // The name of the DomainName resource to be changed. // // This member is required. DomainName *string // The identifier for the domain name resource. Supported only for private custom // domain names. DomainNameId *string // For more information about supported patch operations, see [Patch Operations]. // // [Patch Operations]: https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html PatchOperations []types.PatchOperation // contains filtered or unexported fields }
A request to change information about the DomainName resource.
type UpdateDomainNameOutput ¶
type UpdateDomainNameOutput struct { // The reference to an Amazon Web Services-managed certificate that will be used // by edge-optimized endpoint or private endpoint for this domain name. Certificate // Manager is the only supported source. CertificateArn *string // The name of the certificate that will be used by edge-optimized endpoint or // private endpoint for this domain name. CertificateName *string // The timestamp when the certificate that was used by edge-optimized endpoint or // private endpoint for this domain name was uploaded. CertificateUploadDate *time.Time // The domain name of the Amazon CloudFront distribution associated with this // custom domain name for an edge-optimized endpoint. You set up this association // when adding a DNS record pointing the custom domain name to this distribution // name. For more information about CloudFront distributions, see the Amazon // CloudFront documentation. DistributionDomainName *string // The region-agnostic Amazon Route 53 Hosted Zone ID of the edge-optimized // endpoint. The valid value is Z2FDTNDATAQYW2 for all the regions. For more // information, see Set up a Regional Custom Domain Name and AWS Regions and // Endpoints for API Gateway. DistributionHostedZoneId *string // The custom domain name as an API host name, for example, my-api.example.com . DomainName *string // The ARN of the domain name. Supported only for private custom domain names. DomainNameArn *string // The identifier for the domain name resource. Supported only for private custom // domain names. DomainNameId *string // The status of the DomainName migration. The valid values are AVAILABLE and // UPDATING . If the status is UPDATING , the domain cannot be modified further // until the existing operation is complete. If it is AVAILABLE , the domain can be // updated. DomainNameStatus types.DomainNameStatus // An optional text message containing detailed information about status of the // DomainName migration. DomainNameStatusMessage *string // The endpoint configuration of this DomainName showing the endpoint types of the // domain name. EndpointConfiguration *types.EndpointConfiguration // A stringified JSON policy document that applies to the API Gateway Management // service for this DomainName. This policy document controls access for access // association sources to create domain name access associations with this // DomainName. Supported only for private custom domain names. ManagementPolicy *string // The mutual TLS authentication configuration for a custom domain name. If // specified, API Gateway performs two-way authentication between the client and // the server. Clients must present a trusted certificate to access your API. MutualTlsAuthentication *types.MutualTlsAuthentication // The ARN of the public certificate issued by ACM to validate ownership of your // custom domain. Only required when configuring mutual TLS and using an ACM // imported or private CA certificate ARN as the regionalCertificateArn. OwnershipVerificationCertificateArn *string // A stringified JSON policy document that applies to the execute-api service for // this DomainName regardless of the caller and Method configuration. Supported // only for private custom domain names. Policy *string // The reference to an Amazon Web Services-managed certificate that will be used // for validating the regional domain name. Certificate Manager is the only // supported source. RegionalCertificateArn *string // The name of the certificate that will be used for validating the regional // domain name. RegionalCertificateName *string // The domain name associated with the regional endpoint for this custom domain // name. You set up this association by adding a DNS record that points the custom // domain name to this regional domain name. The regional domain name is returned // by API Gateway when you create a regional endpoint. RegionalDomainName *string // The region-specific Amazon Route 53 Hosted Zone ID of the regional endpoint. // For more information, see Set up a Regional Custom Domain Name and AWS Regions // and Endpoints for API Gateway. RegionalHostedZoneId *string // The Transport Layer Security (TLS) version + cipher suite for this DomainName. // The valid values are TLS_1_0 and TLS_1_2 . SecurityPolicy types.SecurityPolicy // The collection of tags. Each tag element is associated with a given resource. Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents a custom domain name as a user-friendly host name of an API (RestApi).
type UpdateGatewayResponseInput ¶
type UpdateGatewayResponseInput struct { // The response type of the associated GatewayResponse. // // This member is required. ResponseType types.GatewayResponseType // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // For more information about supported patch operations, see [Patch Operations]. // // [Patch Operations]: https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html PatchOperations []types.PatchOperation // contains filtered or unexported fields }
Updates a GatewayResponse of a specified response type on the given RestApi.
type UpdateGatewayResponseOutput ¶
type UpdateGatewayResponseOutput struct { // A Boolean flag to indicate whether this GatewayResponse is the default gateway // response ( true ) or not ( false ). A default gateway response is one generated // by API Gateway without any customization by an API developer. DefaultResponse bool // Response parameters (paths, query strings and headers) of the GatewayResponse // as a string-to-string map of key-value pairs. ResponseParameters map[string]string // Response templates of the GatewayResponse as a string-to-string map of // key-value pairs. ResponseTemplates map[string]string // The response type of the associated GatewayResponse. ResponseType types.GatewayResponseType // The HTTP status code for this GatewayResponse. StatusCode *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
A gateway response of a given response type and status code, with optional response parameters and mapping templates.
type UpdateIntegrationInput ¶
type UpdateIntegrationInput struct { // Represents an update integration request's HTTP method. // // This member is required. HttpMethod *string // Represents an update integration request's resource identifier. // // This member is required. ResourceId *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // For more information about supported patch operations, see [Patch Operations]. // // [Patch Operations]: https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html PatchOperations []types.PatchOperation // contains filtered or unexported fields }
Represents an update integration request.
type UpdateIntegrationOutput ¶
type UpdateIntegrationOutput struct { // A list of request parameters whose values API Gateway caches. To be valid // values for cacheKeyParameters , these parameters must also be specified for // Method requestParameters . CacheKeyParameters []string // Specifies a group of related cached parameters. By default, API Gateway uses // the resource ID as the cacheNamespace . You can specify the same cacheNamespace // across resources to return the same cached data for requests to different // resources. CacheNamespace *string // The ID of the VpcLink used for the integration when connectionType=VPC_LINK and // undefined, otherwise. ConnectionId *string // The type of the network connection to the integration endpoint. The valid value // is INTERNET for connections through the public routable internet or VPC_LINK // for private connections between API Gateway and a network load balancer in a // VPC. The default value is INTERNET . ConnectionType types.ConnectionType // Specifies how to handle request payload content type conversions. Supported // values are CONVERT_TO_BINARY and CONVERT_TO_TEXT , with the following behaviors: // // If this property is not defined, the request payload will be passed through // from the method request to integration request without modification, provided // that the passthroughBehavior is configured to support payload pass-through. ContentHandling types.ContentHandlingStrategy // Specifies the credentials required for the integration, if any. For AWS // integrations, three options are available. To specify an IAM Role for API // Gateway to assume, use the role's Amazon Resource Name (ARN). To require that // the caller's identity be passed through from the request, specify the string // arn:aws:iam::\*:user/\* . To use resource-based permissions on supported Amazon // Web Services services, specify null. Credentials *string // Specifies the integration's HTTP method type. For the Type property, if you // specify MOCK , this property is optional. For Lambda integrations, you must set // the integration method to POST . For all other types, you must specify this // property. HttpMethod *string // Specifies the integration's responses. IntegrationResponses map[string]types.IntegrationResponse // Specifies how the method request body of an unmapped content type will be // passed through the integration request to the back end without transformation. A // content type is unmapped if no mapping template is defined in the integration or // the content type does not match any of the mapped content types, as specified in // requestTemplates . The valid value is one of the following: WHEN_NO_MATCH : // passes the method request body through the integration request to the back end // without transformation when the method request content type does not match any // content type associated with the mapping templates defined in the integration // request. WHEN_NO_TEMPLATES : passes the method request body through the // integration request to the back end without transformation when no mapping // template is defined in the integration request. If a template is defined when // this option is selected, the method request of an unmapped content-type will be // rejected with an HTTP 415 Unsupported Media Type response. NEVER : rejects the // method request with an HTTP 415 Unsupported Media Type response when either the // method request content type does not match any content type associated with the // mapping templates defined in the integration request or no mapping template is // defined in the integration request. PassthroughBehavior *string // A key-value map specifying request parameters that are passed from the method // request to the back end. The key is an integration request parameter name and // the associated value is a method request parameter value or static value that // must be enclosed within single quotes and pre-encoded as required by the back // end. The method request parameter value must match the pattern of // method.request.{location}.{name} , where location is querystring , path , or // header and name must be a valid and unique method request parameter name. RequestParameters map[string]string // Represents a map of Velocity templates that are applied on the request payload // based on the value of the Content-Type header sent by the client. The content // type value is the key in this map, and the template (as a String) is the value. RequestTemplates map[string]string // Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 // milliseconds or 29 seconds. TimeoutInMillis int32 // Specifies the TLS configuration for an integration. TlsConfig *types.TlsConfig // Specifies an API method integration type. The valid value is one of the // following: // // For the HTTP and HTTP proxy integrations, each integration can specify a // protocol ( http/https ), port and path. Standard 80 and 443 ports are supported // as well as custom ports above 1024. An HTTP or HTTP proxy integration with a // connectionType of VPC_LINK is referred to as a private integration and uses a // VpcLink to connect API Gateway to a network load balancer of a VPC. Type types.IntegrationType // Specifies Uniform Resource Identifier (URI) of the integration endpoint. // // For HTTP or HTTP_PROXY integrations, the URI must be a fully formed, encoded // HTTP(S) URL according to the RFC-3986 specification for standard integrations. // If connectionType is VPC_LINK specify the Network Load Balancer DNS name. For // AWS or AWS_PROXY integrations, the URI is of the form // arn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{service_api} // . Here, {Region} is the API Gateway region (e.g., us-east-1); {service} is the // name of the integrated Amazon Web Services service (e.g., s3); and {subdomain} // is a designated subdomain supported by certain Amazon Web Services service for // fast host-name lookup. action can be used for an Amazon Web Services service // action-based API, using an Action={name}&{p1}={v1}&p2={v2}... query string. The // ensuing {service_api} refers to a supported action {name} plus any required // input parameters. Alternatively, path can be used for an Amazon Web Services // service path-based API. The ensuing service_api refers to the path to an Amazon // Web Services service resource, including the region of the integrated Amazon Web // Services service, if applicable. For example, for integration with the S3 API of // GetObject, the uri can be either // arn:aws:apigateway:us-west-2:s3:action/GetObject&Bucket={bucket}&Key={key} or // arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key} Uri *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents an HTTP , HTTP_PROXY , AWS , AWS_PROXY , or Mock integration.
type UpdateIntegrationResponseInput ¶
type UpdateIntegrationResponseInput struct { // Specifies an update integration response request's HTTP method. // // This member is required. HttpMethod *string // Specifies an update integration response request's resource identifier. // // This member is required. ResourceId *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // Specifies an update integration response request's status code. // // This member is required. StatusCode *string // For more information about supported patch operations, see [Patch Operations]. // // [Patch Operations]: https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html PatchOperations []types.PatchOperation // contains filtered or unexported fields }
Represents an update integration response request.
type UpdateIntegrationResponseOutput ¶
type UpdateIntegrationResponseOutput struct { // Specifies how to handle response payload content type conversions. Supported // values are CONVERT_TO_BINARY and CONVERT_TO_TEXT , with the following behaviors: // // If this property is not defined, the response payload will be passed through // from the integration response to the method response without modification. ContentHandling types.ContentHandlingStrategy // A key-value map specifying response parameters that are passed to the method // response from the back end. The key is a method response header parameter name // and the mapped value is an integration response header value, a static value // enclosed within a pair of single quotes, or a JSON expression from the // integration response body. The mapping key must match the pattern of // method.response.header.{name} , where name is a valid and unique header name. // The mapped non-static value must match the pattern of // integration.response.header.{name} or // integration.response.body.{JSON-expression} , where name is a valid and unique // response header name and JSON-expression is a valid JSON expression without the // $ prefix. ResponseParameters map[string]string // Specifies the templates used to transform the integration response body. // Response templates are represented as a key/value map, with a content-type as // the key and a template as the value. ResponseTemplates map[string]string // Specifies the regular expression (regex) pattern used to choose an integration // response based on the response from the back end. For example, if the success // response returns nothing and the error response returns some string, you could // use the .+ regex to match error response. However, make sure that the error // response does not contain any newline ( \n ) character in such cases. If the // back end is an Lambda function, the Lambda function error header is matched. For // all other HTTP and Amazon Web Services back ends, the HTTP status code is // matched. SelectionPattern *string // Specifies the status code that is used to map the integration response to an // existing MethodResponse. StatusCode *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents an integration response. The status code must map to an existing MethodResponse, and parameters and templates can be used to transform the back-end response.
type UpdateMethodInput ¶
type UpdateMethodInput struct { // The HTTP verb of the Method resource. // // This member is required. HttpMethod *string // The Resource identifier for the Method resource. // // This member is required. ResourceId *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // For more information about supported patch operations, see [Patch Operations]. // // [Patch Operations]: https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html PatchOperations []types.PatchOperation // contains filtered or unexported fields }
Request to update an existing Method resource.
type UpdateMethodOutput ¶
type UpdateMethodOutput struct { // A boolean flag specifying whether a valid ApiKey is required to invoke this // method. ApiKeyRequired *bool // A list of authorization scopes configured on the method. The scopes are used // with a COGNITO_USER_POOLS authorizer to authorize the method invocation. The // authorization works by matching the method scopes against the scopes parsed from // the access token in the incoming request. The method invocation is authorized if // any method scopes matches a claimed scope in the access token. Otherwise, the // invocation is not authorized. When the method scope is configured, the client // must provide an access token instead of an identity token for authorization // purposes. AuthorizationScopes []string // The method's authorization type. Valid values are NONE for open access, AWS_IAM // for using AWS IAM permissions, CUSTOM for using a custom authorizer, or // COGNITO_USER_POOLS for using a Cognito user pool. AuthorizationType *string // The identifier of an Authorizer to use on this method. The authorizationType // must be CUSTOM . AuthorizerId *string // The method's HTTP verb. HttpMethod *string // Gets the method's integration responsible for passing the client-submitted // request to the back end and performing necessary transformations to make the // request compliant with the back end. MethodIntegration *types.Integration // Gets a method response associated with a given HTTP status code. MethodResponses map[string]types.MethodResponse // A human-friendly operation identifier for the method. For example, you can // assign the operationName of ListPets for the GET /pets method in the PetStore // example. OperationName *string // A key-value map specifying data schemas, represented by Model resources, (as // the mapped value) of the request payloads of given content types (as the mapping // key). RequestModels map[string]string // A key-value map defining required or optional method request parameters that // can be accepted by API Gateway. A key is a method request parameter name // matching the pattern of method.request.{location}.{name} , where location is // querystring , path , or header and name is a valid and unique parameter name. // The value associated with the key is a Boolean flag indicating whether the // parameter is required ( true ) or optional ( false ). The method request // parameter names defined here are available in Integration to be mapped to // integration request parameters or templates. RequestParameters map[string]bool // The identifier of a RequestValidator for request validation. RequestValidatorId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents a client-facing interface by which the client calls the API to
access back-end resources. A Method resource is integrated with an Integration resource. Both consist of a request and one or more responses. The method request takes the client input that is passed to the back end through the integration request. A method response returns the output from the back end to the client through an integration response. A method request is embodied in a Method resource, whereas an integration request is embodied in an Integration resource. On the other hand, a method response is represented by a MethodResponse resource, whereas an integration response is represented by an IntegrationResponse resource.
type UpdateMethodResponseInput ¶
type UpdateMethodResponseInput struct { // The HTTP verb of the Method resource. // // This member is required. HttpMethod *string // The Resource identifier for the MethodResponse resource. // // This member is required. ResourceId *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // The status code for the MethodResponse resource. // // This member is required. StatusCode *string // For more information about supported patch operations, see [Patch Operations]. // // [Patch Operations]: https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html PatchOperations []types.PatchOperation // contains filtered or unexported fields }
A request to update an existing MethodResponse resource.
type UpdateMethodResponseOutput ¶
type UpdateMethodResponseOutput struct { // Specifies the Model resources used for the response's content-type. Response // models are represented as a key/value map, with a content-type as the key and a // Model name as the value. ResponseModels map[string]string // A key-value map specifying required or optional response parameters that API // Gateway can send back to the caller. A key defines a method response header and // the value specifies whether the associated method response header is required or // not. The expression of the key must match the pattern // method.response.header.{name} , where name is a valid and unique header name. // API Gateway passes certain integration response data to the method response // headers specified here according to the mapping you prescribe in the API's // IntegrationResponse. The integration response data that can be mapped include an // integration response header expressed in integration.response.header.{name} , a // static value enclosed within a pair of single quotes (e.g., 'application/json' // ), or a JSON expression from the back-end response payload in the form of // integration.response.body.{JSON-expression} , where JSON-expression is a valid // JSON expression without the $ prefix.) ResponseParameters map[string]bool // The method response's status code. StatusCode *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents a method response of a given HTTP status code returned to the client. The method response is passed from the back end through the associated integration response that can be transformed using a mapping template.
type UpdateModelInput ¶
type UpdateModelInput struct { // The name of the model to update. // // This member is required. ModelName *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // For more information about supported patch operations, see [Patch Operations]. // // [Patch Operations]: https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html PatchOperations []types.PatchOperation // contains filtered or unexported fields }
Request to update an existing model in an existing RestApi resource.
type UpdateModelOutput ¶
type UpdateModelOutput struct { // The content-type for the model. ContentType *string // The description of the model. Description *string // The identifier for the model resource. Id *string // The name of the model. Must be an alphanumeric string. Name *string // The schema for the model. For application/json models, this should be JSON // schema draft 4 model. Do not include "\*/" characters in the description of any // properties because such "\*/" characters may be interpreted as the closing // marker for comments in some languages, such as Java or JavaScript, causing the // installation of your API's SDK generated by API Gateway to fail. Schema *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents the data structure of a method's request or response payload.
type UpdateRequestValidatorInput ¶
type UpdateRequestValidatorInput struct { // The identifier of RequestValidator to be updated. // // This member is required. RequestValidatorId *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // For more information about supported patch operations, see [Patch Operations]. // // [Patch Operations]: https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html PatchOperations []types.PatchOperation // contains filtered or unexported fields }
Updates a RequestValidator of a given RestApi.
type UpdateRequestValidatorOutput ¶
type UpdateRequestValidatorOutput struct { // The identifier of this RequestValidator. Id *string // The name of this RequestValidator Name *string // A Boolean flag to indicate whether to validate a request body according to the // configured Model schema. ValidateRequestBody bool // A Boolean flag to indicate whether to validate request parameters ( true ) or // not ( false ). ValidateRequestParameters bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
A set of validation rules for incoming Method requests.
type UpdateResourceInput ¶
type UpdateResourceInput struct { // The identifier of the Resource resource. // // This member is required. ResourceId *string // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // For more information about supported patch operations, see [Patch Operations]. // // [Patch Operations]: https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html PatchOperations []types.PatchOperation // contains filtered or unexported fields }
Request to change information about a Resource resource.
type UpdateResourceOutput ¶
type UpdateResourceOutput struct { // The resource's identifier. Id *string // The parent resource's identifier. ParentId *string // The full path for this resource. Path *string // The last path segment for this resource. PathPart *string // Gets an API resource's method of a given HTTP verb. ResourceMethods map[string]types.Method // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents an API resource.
type UpdateRestApiInput ¶
type UpdateRestApiInput struct { // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // For more information about supported patch operations, see [Patch Operations]. // // [Patch Operations]: https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html PatchOperations []types.PatchOperation // contains filtered or unexported fields }
Request to update an existing RestApi resource in your collection.
type UpdateRestApiOutput ¶
type UpdateRestApiOutput struct { // The source of the API key for metering requests according to a usage plan. // Valid values are: > HEADER to read the API key from the X-API-Key header of a // request. AUTHORIZER to read the API key from the UsageIdentifierKey from a // custom authorizer. ApiKeySource types.ApiKeySourceType // The list of binary media types supported by the RestApi. By default, the // RestApi supports only UTF-8-encoded text payloads. BinaryMediaTypes []string // The timestamp when the API was created. CreatedDate *time.Time // The API's description. Description *string // Specifies whether clients can invoke your API by using the default execute-api // endpoint. By default, clients can invoke your API with the default // https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that // clients use a custom domain name to invoke your API, disable the default // endpoint. DisableExecuteApiEndpoint bool // The endpoint configuration of this RestApi showing the endpoint types of the // API. EndpointConfiguration *types.EndpointConfiguration // The API's identifier. This identifier is unique across all of your APIs in API // Gateway. Id *string // A nullable integer that is used to enable compression (with non-negative // between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a // null value) on an API. When compression is enabled, compression or decompression // is not applied on the payload if the payload size is smaller than this value. // Setting it to zero allows compression for any payload size. MinimumCompressionSize *int32 // The API's name. Name *string // A stringified JSON policy document that applies to this RestApi regardless of // the caller and Method configuration. Policy *string // The API's root resource ID. RootResourceId *string // The collection of tags. Each tag element is associated with a given resource. Tags map[string]string // A version identifier for the API. Version *string // The warning messages reported when failonwarnings is turned on during API // import. Warnings []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents a REST API.
type UpdateStageInput ¶
type UpdateStageInput struct { // The string identifier of the associated RestApi. // // This member is required. RestApiId *string // The name of the Stage resource to change information about. // // This member is required. StageName *string // For more information about supported patch operations, see [Patch Operations]. // // [Patch Operations]: https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html PatchOperations []types.PatchOperation // contains filtered or unexported fields }
Requests API Gateway to change information about a Stage resource.
type UpdateStageOutput ¶
type UpdateStageOutput struct { // Settings for logging access in this stage. AccessLogSettings *types.AccessLogSettings // Specifies whether a cache cluster is enabled for the stage. To activate a // method-level cache, set CachingEnabled to true for a method. CacheClusterEnabled bool // The stage's cache capacity in GB. For more information about choosing a cache // size, see [Enabling API caching to enhance responsiveness]. // // [Enabling API caching to enhance responsiveness]: https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-caching.html CacheClusterSize types.CacheClusterSize // The status of the cache cluster for the stage, if enabled. CacheClusterStatus types.CacheClusterStatus // Settings for the canary deployment in this stage. CanarySettings *types.CanarySettings // The identifier of a client certificate for an API stage. ClientCertificateId *string // The timestamp when the stage was created. CreatedDate *time.Time // The identifier of the Deployment that the stage points to. DeploymentId *string // The stage's description. Description *string // The version of the associated API documentation. DocumentationVersion *string // The timestamp when the stage last updated. LastUpdatedDate *time.Time // A map that defines the method settings for a Stage resource. Keys (designated // as /{method_setting_key below) are method paths defined as // {resource_path}/{http_method} for an individual method override, or /\*/\* for // overriding all methods in the stage. MethodSettings map[string]types.MethodSetting // The name of the stage is the first path segment in the Uniform Resource // Identifier (URI) of a call to API Gateway. Stage names can only contain // alphanumeric characters, hyphens, and underscores. Maximum length is 128 // characters. StageName *string // The collection of tags. Each tag element is associated with a given resource. Tags map[string]string // Specifies whether active tracing with X-ray is enabled for the Stage. TracingEnabled bool // A map that defines the stage variables for a Stage resource. Variable names can // have alphanumeric and underscore characters, and the values must match // [A-Za-z0-9-._~:/?#&=,]+ . Variables map[string]string // The ARN of the WebAcl associated with the Stage. WebAclArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents a unique identifier for a version of a deployed RestApi that is callable by users.
type UpdateUsageInput ¶
type UpdateUsageInput struct { // The identifier of the API key associated with the usage plan in which a // temporary extension is granted to the remaining quota. // // This member is required. KeyId *string // The Id of the usage plan associated with the usage data. // // This member is required. UsagePlanId *string // For more information about supported patch operations, see [Patch Operations]. // // [Patch Operations]: https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html PatchOperations []types.PatchOperation // contains filtered or unexported fields }
The PATCH request to grant a temporary extension to the remaining quota of a usage plan associated with a specified API key.
type UpdateUsageOutput ¶
type UpdateUsageOutput struct { // The ending date of the usage data. EndDate *string // The usage data, as daily logs of used and remaining quotas, over the specified // time interval indexed over the API keys in a usage plan. For example, {..., // "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]} , where {api_key} // stands for an API key value and the daily log entry is of the format [used // quota, remaining quota] . Items map[string][][]int64 // The current pagination position in the paged result set. Position *string // The starting date of the usage data. StartDate *string // The plan Id associated with this usage data. UsagePlanId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents the usage data of a usage plan.
type UpdateUsagePlanInput ¶
type UpdateUsagePlanInput struct { // The Id of the to-be-updated usage plan. // // This member is required. UsagePlanId *string // For more information about supported patch operations, see [Patch Operations]. // // [Patch Operations]: https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html PatchOperations []types.PatchOperation // contains filtered or unexported fields }
The PATCH request to update a usage plan of a given plan Id.
type UpdateUsagePlanOutput ¶
type UpdateUsagePlanOutput struct { // The associated API stages of a usage plan. ApiStages []types.ApiStage // The description of a usage plan. Description *string // The identifier of a UsagePlan resource. Id *string // The name of a usage plan. Name *string // The Amazon Web Services Marketplace product identifier to associate with the // usage plan as a SaaS product on the Amazon Web Services Marketplace. ProductCode *string // The target maximum number of permitted requests per a given unit time interval. Quota *types.QuotaSettings // The collection of tags. Each tag element is associated with a given resource. Tags map[string]string // A map containing method level throttling information for API stage in a usage // plan. Throttle *types.ThrottleSettings // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Represents a usage plan used to specify who can assess associated API stages. Optionally, target request rate and quota limits can be set. In some cases clients can exceed the targets that you set. Don’t rely on usage plans to control costs. Consider using Amazon Web Services Budgetsto monitor costs and WAF to manage API requests.
type UpdateVpcLinkInput ¶
type UpdateVpcLinkInput struct { // The identifier of the VpcLink. It is used in an Integration to reference this // VpcLink. // // This member is required. VpcLinkId *string // For more information about supported patch operations, see [Patch Operations]. // // [Patch Operations]: https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html PatchOperations []types.PatchOperation // contains filtered or unexported fields }
Updates an existing VpcLink of a specified identifier.
type UpdateVpcLinkOutput ¶
type UpdateVpcLinkOutput struct { // The description of the VPC link. Description *string // The identifier of the VpcLink. It is used in an Integration to reference this // VpcLink. Id *string // The name used to label and identify the VPC link. Name *string // The status of the VPC link. The valid values are AVAILABLE , PENDING , DELETING // , or FAILED . Deploying an API will wait if the status is PENDING and will fail // if the status is DELETING . Status types.VpcLinkStatus // A description about the VPC link status. StatusMessage *string // The collection of tags. Each tag element is associated with a given resource. Tags map[string]string // The ARN of the network load balancer of the VPC targeted by the VPC link. The // network load balancer must be owned by the same Amazon Web Services account of // the API owner. TargetArns []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
An API Gateway VPC link for a RestApi to access resources in an Amazon Virtual Private Cloud (VPC).
Source Files ¶
- api_client.go
- api_op_CreateApiKey.go
- api_op_CreateAuthorizer.go
- api_op_CreateBasePathMapping.go
- api_op_CreateDeployment.go
- api_op_CreateDocumentationPart.go
- api_op_CreateDocumentationVersion.go
- api_op_CreateDomainName.go
- api_op_CreateDomainNameAccessAssociation.go
- api_op_CreateModel.go
- api_op_CreateRequestValidator.go
- api_op_CreateResource.go
- api_op_CreateRestApi.go
- api_op_CreateStage.go
- api_op_CreateUsagePlan.go
- api_op_CreateUsagePlanKey.go
- api_op_CreateVpcLink.go
- api_op_DeleteApiKey.go
- api_op_DeleteAuthorizer.go
- api_op_DeleteBasePathMapping.go
- api_op_DeleteClientCertificate.go
- api_op_DeleteDeployment.go
- api_op_DeleteDocumentationPart.go
- api_op_DeleteDocumentationVersion.go
- api_op_DeleteDomainName.go
- api_op_DeleteDomainNameAccessAssociation.go
- api_op_DeleteGatewayResponse.go
- api_op_DeleteIntegration.go
- api_op_DeleteIntegrationResponse.go
- api_op_DeleteMethod.go
- api_op_DeleteMethodResponse.go
- api_op_DeleteModel.go
- api_op_DeleteRequestValidator.go
- api_op_DeleteResource.go
- api_op_DeleteRestApi.go
- api_op_DeleteStage.go
- api_op_DeleteUsagePlan.go
- api_op_DeleteUsagePlanKey.go
- api_op_DeleteVpcLink.go
- api_op_FlushStageAuthorizersCache.go
- api_op_FlushStageCache.go
- api_op_GenerateClientCertificate.go
- api_op_GetAccount.go
- api_op_GetApiKey.go
- api_op_GetApiKeys.go
- api_op_GetAuthorizer.go
- api_op_GetAuthorizers.go
- api_op_GetBasePathMapping.go
- api_op_GetBasePathMappings.go
- api_op_GetClientCertificate.go
- api_op_GetClientCertificates.go
- api_op_GetDeployment.go
- api_op_GetDeployments.go
- api_op_GetDocumentationPart.go
- api_op_GetDocumentationParts.go
- api_op_GetDocumentationVersion.go
- api_op_GetDocumentationVersions.go
- api_op_GetDomainName.go
- api_op_GetDomainNameAccessAssociations.go
- api_op_GetDomainNames.go
- api_op_GetExport.go
- api_op_GetGatewayResponse.go
- api_op_GetGatewayResponses.go
- api_op_GetIntegration.go
- api_op_GetIntegrationResponse.go
- api_op_GetMethod.go
- api_op_GetMethodResponse.go
- api_op_GetModel.go
- api_op_GetModelTemplate.go
- api_op_GetModels.go
- api_op_GetRequestValidator.go
- api_op_GetRequestValidators.go
- api_op_GetResource.go
- api_op_GetResources.go
- api_op_GetRestApi.go
- api_op_GetRestApis.go
- api_op_GetSdk.go
- api_op_GetSdkType.go
- api_op_GetSdkTypes.go
- api_op_GetStage.go
- api_op_GetStages.go
- api_op_GetTags.go
- api_op_GetUsage.go
- api_op_GetUsagePlan.go
- api_op_GetUsagePlanKey.go
- api_op_GetUsagePlanKeys.go
- api_op_GetUsagePlans.go
- api_op_GetVpcLink.go
- api_op_GetVpcLinks.go
- api_op_ImportApiKeys.go
- api_op_ImportDocumentationParts.go
- api_op_ImportRestApi.go
- api_op_PutGatewayResponse.go
- api_op_PutIntegration.go
- api_op_PutIntegrationResponse.go
- api_op_PutMethod.go
- api_op_PutMethodResponse.go
- api_op_PutRestApi.go
- api_op_RejectDomainNameAccessAssociation.go
- api_op_TagResource.go
- api_op_TestInvokeAuthorizer.go
- api_op_TestInvokeMethod.go
- api_op_UntagResource.go
- api_op_UpdateAccount.go
- api_op_UpdateApiKey.go
- api_op_UpdateAuthorizer.go
- api_op_UpdateBasePathMapping.go
- api_op_UpdateClientCertificate.go
- api_op_UpdateDeployment.go
- api_op_UpdateDocumentationPart.go
- api_op_UpdateDocumentationVersion.go
- api_op_UpdateDomainName.go
- api_op_UpdateGatewayResponse.go
- api_op_UpdateIntegration.go
- api_op_UpdateIntegrationResponse.go
- api_op_UpdateMethod.go
- api_op_UpdateMethodResponse.go
- api_op_UpdateModel.go
- api_op_UpdateRequestValidator.go
- api_op_UpdateResource.go
- api_op_UpdateRestApi.go
- api_op_UpdateStage.go
- api_op_UpdateUsage.go
- api_op_UpdateUsagePlan.go
- api_op_UpdateVpcLink.go
- auth.go
- deserializers.go
- doc.go
- endpoints.go
- go_module_metadata.go
- options.go
- serializers.go
- validators.go