Struct aws_sdk_iam::types::builders::InstanceProfileBuilder
source · #[non_exhaustive]pub struct InstanceProfileBuilder { /* private fields */ }
Expand description
A builder for InstanceProfile
.
Implementations§
source§impl InstanceProfileBuilder
impl InstanceProfileBuilder
sourcepub fn path(self, input: impl Into<String>) -> Self
pub fn path(self, input: impl Into<String>) -> Self
The path to the instance profile. For more information about paths, see IAM identifiers in the IAM User Guide.
This field is required.sourcepub fn set_path(self, input: Option<String>) -> Self
pub fn set_path(self, input: Option<String>) -> Self
The path to the instance profile. For more information about paths, see IAM identifiers in the IAM User Guide.
sourcepub fn get_path(&self) -> &Option<String>
pub fn get_path(&self) -> &Option<String>
The path to the instance profile. For more information about paths, see IAM identifiers in the IAM User Guide.
sourcepub fn instance_profile_name(self, input: impl Into<String>) -> Self
pub fn instance_profile_name(self, input: impl Into<String>) -> Self
The name identifying the instance profile.
This field is required.sourcepub fn set_instance_profile_name(self, input: Option<String>) -> Self
pub fn set_instance_profile_name(self, input: Option<String>) -> Self
The name identifying the instance profile.
sourcepub fn get_instance_profile_name(&self) -> &Option<String>
pub fn get_instance_profile_name(&self) -> &Option<String>
The name identifying the instance profile.
sourcepub fn instance_profile_id(self, input: impl Into<String>) -> Self
pub fn instance_profile_id(self, input: impl Into<String>) -> Self
The stable and unique string identifying the instance profile. For more information about IDs, see IAM identifiers in the IAM User Guide.
This field is required.sourcepub fn set_instance_profile_id(self, input: Option<String>) -> Self
pub fn set_instance_profile_id(self, input: Option<String>) -> Self
The stable and unique string identifying the instance profile. For more information about IDs, see IAM identifiers in the IAM User Guide.
sourcepub fn get_instance_profile_id(&self) -> &Option<String>
pub fn get_instance_profile_id(&self) -> &Option<String>
The stable and unique string identifying the instance profile. For more information about IDs, see IAM identifiers in the IAM User Guide.
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) specifying the instance profile. For more information about ARNs and how to use them in policies, see IAM identifiers in the IAM User Guide.
This field is required.sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) specifying the instance profile. For more information about ARNs and how to use them in policies, see IAM identifiers in the IAM User Guide.
sourcepub fn get_arn(&self) -> &Option<String>
pub fn get_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) specifying the instance profile. For more information about ARNs and how to use them in policies, see IAM identifiers in the IAM User Guide.
sourcepub fn create_date(self, input: DateTime) -> Self
pub fn create_date(self, input: DateTime) -> Self
The date when the instance profile was created.
This field is required.sourcepub fn set_create_date(self, input: Option<DateTime>) -> Self
pub fn set_create_date(self, input: Option<DateTime>) -> Self
The date when the instance profile was created.
sourcepub fn get_create_date(&self) -> &Option<DateTime>
pub fn get_create_date(&self) -> &Option<DateTime>
The date when the instance profile was created.
sourcepub fn roles(self, input: Role) -> Self
pub fn roles(self, input: Role) -> Self
Appends an item to roles
.
To override the contents of this collection use set_roles
.
The role associated with the instance profile.
sourcepub fn set_roles(self, input: Option<Vec<Role>>) -> Self
pub fn set_roles(self, input: Option<Vec<Role>>) -> Self
The role associated with the instance profile.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
A list of tags that are attached to the instance profile. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
A list of tags that are attached to the instance profile. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
A list of tags that are attached to the instance profile. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
sourcepub fn build(self) -> Result<InstanceProfile, BuildError>
pub fn build(self) -> Result<InstanceProfile, BuildError>
Consumes the builder and constructs a InstanceProfile
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for InstanceProfileBuilder
impl Clone for InstanceProfileBuilder
source§fn clone(&self) -> InstanceProfileBuilder
fn clone(&self) -> InstanceProfileBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InstanceProfileBuilder
impl Debug for InstanceProfileBuilder
source§impl Default for InstanceProfileBuilder
impl Default for InstanceProfileBuilder
source§fn default() -> InstanceProfileBuilder
fn default() -> InstanceProfileBuilder
source§impl PartialEq for InstanceProfileBuilder
impl PartialEq for InstanceProfileBuilder
source§fn eq(&self, other: &InstanceProfileBuilder) -> bool
fn eq(&self, other: &InstanceProfileBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.