Struct aws_sdk_iam::operation::create_service_linked_role::builders::CreateServiceLinkedRoleInputBuilder
source · #[non_exhaustive]pub struct CreateServiceLinkedRoleInputBuilder { /* private fields */ }Expand description
A builder for CreateServiceLinkedRoleInput.
Implementations§
source§impl CreateServiceLinkedRoleInputBuilder
impl CreateServiceLinkedRoleInputBuilder
sourcepub fn aws_service_name(self, input: impl Into<String>) -> Self
pub fn aws_service_name(self, input: impl Into<String>) -> Self
The service principal for the Amazon Web Services service to which this role is attached. You use a string similar to a URL but without the http:// in front. For example: elasticbeanstalk.amazonaws.com.
Service principals are unique and case-sensitive. To find the exact service principal for your service-linked role, see Amazon Web Services services that work with IAM in the IAM User Guide. Look for the services that have Yes in the Service-Linked Role column. Choose the Yes link to view the service-linked role documentation for that service.
This field is required.sourcepub fn set_aws_service_name(self, input: Option<String>) -> Self
pub fn set_aws_service_name(self, input: Option<String>) -> Self
The service principal for the Amazon Web Services service to which this role is attached. You use a string similar to a URL but without the http:// in front. For example: elasticbeanstalk.amazonaws.com.
Service principals are unique and case-sensitive. To find the exact service principal for your service-linked role, see Amazon Web Services services that work with IAM in the IAM User Guide. Look for the services that have Yes in the Service-Linked Role column. Choose the Yes link to view the service-linked role documentation for that service.
sourcepub fn get_aws_service_name(&self) -> &Option<String>
pub fn get_aws_service_name(&self) -> &Option<String>
The service principal for the Amazon Web Services service to which this role is attached. You use a string similar to a URL but without the http:// in front. For example: elasticbeanstalk.amazonaws.com.
Service principals are unique and case-sensitive. To find the exact service principal for your service-linked role, see Amazon Web Services services that work with IAM in the IAM User Guide. Look for the services that have Yes in the Service-Linked Role column. Choose the Yes link to view the service-linked role documentation for that service.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the role.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the role.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the role.
sourcepub fn custom_suffix(self, input: impl Into<String>) -> Self
pub fn custom_suffix(self, input: impl Into<String>) -> Self
A string that you provide, which is combined with the service-provided prefix to form the complete role name. If you make multiple requests for the same service, then you must supply a different CustomSuffix for each request. Otherwise the request fails with a duplicate role name error. For example, you could add -1 or -debug to the suffix.
Some services do not support the CustomSuffix parameter. If you provide an optional suffix and the operation fails, try the operation again without the suffix.
sourcepub fn set_custom_suffix(self, input: Option<String>) -> Self
pub fn set_custom_suffix(self, input: Option<String>) -> Self
A string that you provide, which is combined with the service-provided prefix to form the complete role name. If you make multiple requests for the same service, then you must supply a different CustomSuffix for each request. Otherwise the request fails with a duplicate role name error. For example, you could add -1 or -debug to the suffix.
Some services do not support the CustomSuffix parameter. If you provide an optional suffix and the operation fails, try the operation again without the suffix.
sourcepub fn get_custom_suffix(&self) -> &Option<String>
pub fn get_custom_suffix(&self) -> &Option<String>
A string that you provide, which is combined with the service-provided prefix to form the complete role name. If you make multiple requests for the same service, then you must supply a different CustomSuffix for each request. Otherwise the request fails with a duplicate role name error. For example, you could add -1 or -debug to the suffix.
Some services do not support the CustomSuffix parameter. If you provide an optional suffix and the operation fails, try the operation again without the suffix.
sourcepub fn build(self) -> Result<CreateServiceLinkedRoleInput, BuildError>
pub fn build(self) -> Result<CreateServiceLinkedRoleInput, BuildError>
Consumes the builder and constructs a CreateServiceLinkedRoleInput.
source§impl CreateServiceLinkedRoleInputBuilder
impl CreateServiceLinkedRoleInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateServiceLinkedRoleOutput, SdkError<CreateServiceLinkedRoleError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateServiceLinkedRoleOutput, SdkError<CreateServiceLinkedRoleError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateServiceLinkedRoleInputBuilder
impl Clone for CreateServiceLinkedRoleInputBuilder
source§fn clone(&self) -> CreateServiceLinkedRoleInputBuilder
fn clone(&self) -> CreateServiceLinkedRoleInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for CreateServiceLinkedRoleInputBuilder
impl Default for CreateServiceLinkedRoleInputBuilder
source§fn default() -> CreateServiceLinkedRoleInputBuilder
fn default() -> CreateServiceLinkedRoleInputBuilder
source§impl PartialEq for CreateServiceLinkedRoleInputBuilder
impl PartialEq for CreateServiceLinkedRoleInputBuilder
source§fn eq(&self, other: &CreateServiceLinkedRoleInputBuilder) -> bool
fn eq(&self, other: &CreateServiceLinkedRoleInputBuilder) -> bool
self and other values to be equal, and is used
by ==.