#[non_exhaustive]pub struct CreateApiKeyInputBuilder { /* private fields */ }
Expand description
A builder for CreateApiKeyInput
.
Implementations§
source§impl CreateApiKeyInputBuilder
impl CreateApiKeyInputBuilder
sourcepub fn scope(self, input: Scope) -> Self
pub fn scope(self, input: Scope) -> Self
Specifies whether this is for an Amazon CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, an Amazon Cognito user pool, an App Runner service, or an Amazon Web Services Verified Access instance.
To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
-
CLI - Specify the Region when you use the CloudFront scope:
--scope=CLOUDFRONT --region=us-east-1
. -
API and SDKs - For all calls, use the Region endpoint us-east-1.
sourcepub fn set_scope(self, input: Option<Scope>) -> Self
pub fn set_scope(self, input: Option<Scope>) -> Self
Specifies whether this is for an Amazon CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, an Amazon Cognito user pool, an App Runner service, or an Amazon Web Services Verified Access instance.
To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
-
CLI - Specify the Region when you use the CloudFront scope:
--scope=CLOUDFRONT --region=us-east-1
. -
API and SDKs - For all calls, use the Region endpoint us-east-1.
sourcepub fn get_scope(&self) -> &Option<Scope>
pub fn get_scope(&self) -> &Option<Scope>
Specifies whether this is for an Amazon CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, an Amazon Cognito user pool, an App Runner service, or an Amazon Web Services Verified Access instance.
To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
-
CLI - Specify the Region when you use the CloudFront scope:
--scope=CLOUDFRONT --region=us-east-1
. -
API and SDKs - For all calls, use the Region endpoint us-east-1.
sourcepub fn token_domains(self, input: impl Into<String>) -> Self
pub fn token_domains(self, input: impl Into<String>) -> Self
Appends an item to token_domains
.
To override the contents of this collection use set_token_domains
.
The client application domains that you want to use this API key for.
Example JSON: "TokenDomains": ["abc.com", "store.abc.com"]
Public suffixes aren't allowed. For example, you can't use gov.au
or co.uk
as token domains.
sourcepub fn set_token_domains(self, input: Option<Vec<String>>) -> Self
pub fn set_token_domains(self, input: Option<Vec<String>>) -> Self
The client application domains that you want to use this API key for.
Example JSON: "TokenDomains": ["abc.com", "store.abc.com"]
Public suffixes aren't allowed. For example, you can't use gov.au
or co.uk
as token domains.
sourcepub fn get_token_domains(&self) -> &Option<Vec<String>>
pub fn get_token_domains(&self) -> &Option<Vec<String>>
The client application domains that you want to use this API key for.
Example JSON: "TokenDomains": ["abc.com", "store.abc.com"]
Public suffixes aren't allowed. For example, you can't use gov.au
or co.uk
as token domains.
sourcepub fn build(self) -> Result<CreateApiKeyInput, BuildError>
pub fn build(self) -> Result<CreateApiKeyInput, BuildError>
Consumes the builder and constructs a CreateApiKeyInput
.
source§impl CreateApiKeyInputBuilder
impl CreateApiKeyInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateApiKeyOutput, SdkError<CreateAPIKeyError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateApiKeyOutput, SdkError<CreateAPIKeyError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateApiKeyInputBuilder
impl Clone for CreateApiKeyInputBuilder
source§fn clone(&self) -> CreateApiKeyInputBuilder
fn clone(&self) -> CreateApiKeyInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateApiKeyInputBuilder
impl Debug for CreateApiKeyInputBuilder
source§impl Default for CreateApiKeyInputBuilder
impl Default for CreateApiKeyInputBuilder
source§fn default() -> CreateApiKeyInputBuilder
fn default() -> CreateApiKeyInputBuilder
source§impl PartialEq for CreateApiKeyInputBuilder
impl PartialEq for CreateApiKeyInputBuilder
source§fn eq(&self, other: &CreateApiKeyInputBuilder) -> bool
fn eq(&self, other: &CreateApiKeyInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.