pub struct CreateStudioComponent { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateStudioComponent
.
Creates a studio component resource.
Implementations§
source§impl CreateStudioComponent
impl CreateStudioComponent
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateStudioComponent, AwsResponseRetryClassifier>, SdkError<CreateStudioComponentError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateStudioComponent, AwsResponseRetryClassifier>, SdkError<CreateStudioComponentError>>
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<CreateStudioComponentOutput, SdkError<CreateStudioComponentError>>
pub async fn send(
self
) -> Result<CreateStudioComponentOutput, SdkError<CreateStudioComponentError>>
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 client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency.
sourcepub fn configuration(self, input: StudioComponentConfiguration) -> Self
pub fn configuration(self, input: StudioComponentConfiguration) -> Self
The configuration of the studio component, based on component type.
sourcepub fn set_configuration(
self,
input: Option<StudioComponentConfiguration>
) -> Self
pub fn set_configuration(
self,
input: Option<StudioComponentConfiguration>
) -> Self
The configuration of the studio component, based on component type.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description.
sourcepub fn ec2_security_group_ids(self, input: impl Into<String>) -> Self
pub fn ec2_security_group_ids(self, input: impl Into<String>) -> Self
Appends an item to ec2SecurityGroupIds
.
To override the contents of this collection use set_ec2_security_group_ids
.
The EC2 security groups that control access to the studio component.
sourcepub fn set_ec2_security_group_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_ec2_security_group_ids(self, input: Option<Vec<String>>) -> Self
The EC2 security groups that control access to the studio component.
sourcepub fn initialization_scripts(
self,
input: StudioComponentInitializationScript
) -> Self
pub fn initialization_scripts(
self,
input: StudioComponentInitializationScript
) -> Self
Appends an item to initializationScripts
.
To override the contents of this collection use set_initialization_scripts
.
Initialization scripts for studio components.
sourcepub fn set_initialization_scripts(
self,
input: Option<Vec<StudioComponentInitializationScript>>
) -> Self
pub fn set_initialization_scripts(
self,
input: Option<Vec<StudioComponentInitializationScript>>
) -> Self
Initialization scripts for studio components.
sourcepub fn script_parameters(self, input: ScriptParameterKeyValue) -> Self
pub fn script_parameters(self, input: ScriptParameterKeyValue) -> Self
Appends an item to scriptParameters
.
To override the contents of this collection use set_script_parameters
.
Parameters for the studio component scripts.
sourcepub fn set_script_parameters(
self,
input: Option<Vec<ScriptParameterKeyValue>>
) -> Self
pub fn set_script_parameters(
self,
input: Option<Vec<ScriptParameterKeyValue>>
) -> Self
Parameters for the studio component scripts.
sourcepub fn set_studio_id(self, input: Option<String>) -> Self
pub fn set_studio_id(self, input: Option<String>) -> Self
The studio ID.
sourcepub fn subtype(self, input: StudioComponentSubtype) -> Self
pub fn subtype(self, input: StudioComponentSubtype) -> Self
The specific subtype of a studio component.
sourcepub fn set_subtype(self, input: Option<StudioComponentSubtype>) -> Self
pub fn set_subtype(self, input: Option<StudioComponentSubtype>) -> Self
The specific subtype of a studio component.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
A collection of labels, in the form of key-value pairs, that apply to this resource.
A collection of labels, in the form of key-value pairs, that apply to this resource.
sourcepub fn type(self, input: StudioComponentType) -> Self
pub fn type(self, input: StudioComponentType) -> Self
The type of the studio component.
sourcepub fn set_type(self, input: Option<StudioComponentType>) -> Self
pub fn set_type(self, input: Option<StudioComponentType>) -> Self
The type of the studio component.
sourcepub fn secure_initialization_role_arn(self, input: impl Into<String>) -> Self
pub fn secure_initialization_role_arn(self, input: impl Into<String>) -> Self
An IAM role attached to Studio Component when the system initialization script runs which give the studio component access to Amazon Web Services resources when the system initialization script runs.
sourcepub fn set_secure_initialization_role_arn(self, input: Option<String>) -> Self
pub fn set_secure_initialization_role_arn(self, input: Option<String>) -> Self
An IAM role attached to Studio Component when the system initialization script runs which give the studio component access to Amazon Web Services resources when the system initialization script runs.
sourcepub fn runtime_role_arn(self, input: impl Into<String>) -> Self
pub fn runtime_role_arn(self, input: impl Into<String>) -> Self
An IAM role attached to a Studio Component that gives the studio component access to Amazon Web Services resources at anytime while the instance is running.
sourcepub fn set_runtime_role_arn(self, input: Option<String>) -> Self
pub fn set_runtime_role_arn(self, input: Option<String>) -> Self
An IAM role attached to a Studio Component that gives the studio component access to Amazon Web Services resources at anytime while the instance is running.
Trait Implementations§
source§impl Clone for CreateStudioComponent
impl Clone for CreateStudioComponent
source§fn clone(&self) -> CreateStudioComponent
fn clone(&self) -> CreateStudioComponent
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more