Struct aws_sdk_iam::types::InstanceProfile
source · #[non_exhaustive]pub struct InstanceProfile {
pub path: String,
pub instance_profile_name: String,
pub instance_profile_id: String,
pub arn: String,
pub create_date: DateTime,
pub roles: Vec<Role>,
pub tags: Option<Vec<Tag>>,
}
Expand description
Contains information about an instance profile.
This data type is used as a response element in the following operations:
-
CreateInstanceProfile
-
GetInstanceProfile
-
ListInstanceProfiles
-
ListInstanceProfilesForRole
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.path: String
The path to the instance profile. For more information about paths, see IAM identifiers in the IAM User Guide.
instance_profile_name: String
The name identifying the instance profile.
instance_profile_id: String
The stable and unique string identifying the instance profile. For more information about IDs, see IAM identifiers in the IAM User Guide.
arn: 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.
create_date: DateTime
The date when the instance profile was created.
roles: Vec<Role>
The role associated with the instance profile.
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.
Implementations§
source§impl InstanceProfile
impl InstanceProfile
sourcepub fn path(&self) -> &str
pub fn path(&self) -> &str
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) -> &str
pub fn instance_profile_name(&self) -> &str
The name identifying the instance profile.
sourcepub fn instance_profile_id(&self) -> &str
pub fn instance_profile_id(&self) -> &str
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) -> &str
pub fn arn(&self) -> &str
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) -> &DateTime
pub fn create_date(&self) -> &DateTime
The date when the instance profile was created.
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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags.is_none()
.
source§impl InstanceProfile
impl InstanceProfile
sourcepub fn builder() -> InstanceProfileBuilder
pub fn builder() -> InstanceProfileBuilder
Creates a new builder-style object to manufacture InstanceProfile
.
Trait Implementations§
source§impl Clone for InstanceProfile
impl Clone for InstanceProfile
source§fn clone(&self) -> InstanceProfile
fn clone(&self) -> InstanceProfile
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InstanceProfile
impl Debug for InstanceProfile
source§impl PartialEq for InstanceProfile
impl PartialEq for InstanceProfile
source§fn eq(&self, other: &InstanceProfile) -> bool
fn eq(&self, other: &InstanceProfile) -> bool
self
and other
values to be equal, and is used
by ==
.