Struct aws_sdk_iam::input::create_service_linked_role_input::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for CreateServiceLinkedRoleInput
Implementations
sourceimpl Builder
impl Builder
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.
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 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 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 build(self) -> Result<CreateServiceLinkedRoleInput, BuildError>
pub fn build(self) -> Result<CreateServiceLinkedRoleInput, BuildError>
Consumes the builder and constructs a CreateServiceLinkedRoleInput
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more