pub struct CreateConfigurationProfile { /* private fields */ }Expand description
Fluent builder constructing a request to CreateConfigurationProfile.
Creates a configuration profile, which is information that enables AppConfig to access the configuration source. Valid configuration sources include the AppConfig hosted configuration store, Amazon Web Services Systems Manager (SSM) documents, SSM Parameter Store parameters, Amazon S3 objects, or any integration source action supported by CodePipeline. A configuration profile includes the following information:
-
The URI location of the configuration data.
-
The Identity and Access Management (IAM) role that provides access to the configuration data.
-
A validator for the configuration data. Available validators include either a JSON Schema or an Amazon Web Services Lambda function.
For more information, see Create a Configuration and a Configuration Profile in the AppConfig User Guide.
Implementations§
source§impl CreateConfigurationProfile
impl CreateConfigurationProfile
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateConfigurationProfile, AwsResponseRetryClassifier>, SdkError<CreateConfigurationProfileError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateConfigurationProfile, AwsResponseRetryClassifier>, SdkError<CreateConfigurationProfileError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<CreateConfigurationProfileOutput, SdkError<CreateConfigurationProfileError>>
pub async fn send(
self
) -> Result<CreateConfigurationProfileOutput, SdkError<CreateConfigurationProfileError>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn application_id(self, input: impl Into<String>) -> Self
pub fn application_id(self, input: impl Into<String>) -> Self
The application ID.
sourcepub fn set_application_id(self, input: Option<String>) -> Self
pub fn set_application_id(self, input: Option<String>) -> Self
The application ID.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of the configuration profile.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of the configuration profile.
sourcepub fn location_uri(self, input: impl Into<String>) -> Self
pub fn location_uri(self, input: impl Into<String>) -> Self
A URI to locate the configuration. You can specify the AppConfig hosted configuration store, Systems Manager (SSM) document, an SSM Parameter Store parameter, or an Amazon S3 object. For the hosted configuration store and for feature flags, specify hosted. For an SSM document, specify either the document name in the format ssm-document://
or the Amazon Resource Name (ARN). For a parameter, specify either the parameter name in the format ssm-parameter://
or the ARN. For an Amazon S3 object, specify the URI in the following format: s3://
. Here is an example: s3://my-bucket/my-app/us-east-1/my-config.json
sourcepub fn set_location_uri(self, input: Option<String>) -> Self
pub fn set_location_uri(self, input: Option<String>) -> Self
A URI to locate the configuration. You can specify the AppConfig hosted configuration store, Systems Manager (SSM) document, an SSM Parameter Store parameter, or an Amazon S3 object. For the hosted configuration store and for feature flags, specify hosted. For an SSM document, specify either the document name in the format ssm-document://
or the Amazon Resource Name (ARN). For a parameter, specify either the parameter name in the format ssm-parameter://
or the ARN. For an Amazon S3 object, specify the URI in the following format: s3://
. Here is an example: s3://my-bucket/my-app/us-east-1/my-config.json
sourcepub fn retrieval_role_arn(self, input: impl Into<String>) -> Self
pub fn retrieval_role_arn(self, input: impl Into<String>) -> Self
The ARN of an IAM role with permission to access the configuration at the specified LocationUri.
A retrieval role ARN is not required for configurations stored in the AppConfig hosted configuration store. It is required for all other sources that store your configuration.
sourcepub fn set_retrieval_role_arn(self, input: Option<String>) -> Self
pub fn set_retrieval_role_arn(self, input: Option<String>) -> Self
The ARN of an IAM role with permission to access the configuration at the specified LocationUri.
A retrieval role ARN is not required for configurations stored in the AppConfig hosted configuration store. It is required for all other sources that store your configuration.
sourcepub fn validators(self, input: Validator) -> Self
pub fn validators(self, input: Validator) -> Self
Appends an item to Validators.
To override the contents of this collection use set_validators.
A list of methods for validating the configuration.
sourcepub fn set_validators(self, input: Option<Vec<Validator>>) -> Self
pub fn set_validators(self, input: Option<Vec<Validator>>) -> Self
A list of methods for validating the configuration.
Adds a key-value pair to Tags.
To override the contents of this collection use set_tags.
Metadata to assign to the configuration profile. Tags help organize and categorize your AppConfig resources. Each tag consists of a key and an optional value, both of which you define.
Metadata to assign to the configuration profile. Tags help organize and categorize your AppConfig resources. Each tag consists of a key and an optional value, both of which you define.
sourcepub fn type(self, input: impl Into<String>) -> Self
pub fn type(self, input: impl Into<String>) -> Self
The type of configurations contained in the profile. AppConfig supports feature flags and freeform configurations. We recommend you create feature flag configurations to enable or disable new features and freeform configurations to distribute configurations to an application. When calling this API, enter one of the following values for Type:
AWS.AppConfig.FeatureFlags
AWS.Freeform
sourcepub fn set_type(self, input: Option<String>) -> Self
pub fn set_type(self, input: Option<String>) -> Self
The type of configurations contained in the profile. AppConfig supports feature flags and freeform configurations. We recommend you create feature flag configurations to enable or disable new features and freeform configurations to distribute configurations to an application. When calling this API, enter one of the following values for Type:
AWS.AppConfig.FeatureFlags
AWS.Freeform
Trait Implementations§
source§impl Clone for CreateConfigurationProfile
impl Clone for CreateConfigurationProfile
source§fn clone(&self) -> CreateConfigurationProfile
fn clone(&self) -> CreateConfigurationProfile
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more