pub struct PolicyName {
pub id: Option<String>,
pub region: Option<String>,
pub type_: Option<String>,
}
Expand description
An internal name for an IAM policy, based on the resource to which the policy applies. Not to be confused with a resource’s external full resource name. For more information on this distinction, see go/iam-full-resource-names.
This type is not used in any activity, and only used as part of another schema.
Fields§
§id: Option<String>
Identifies an instance of the type. ID format varies by type. The ID format is defined in the IAM .service file that defines the type, either in path_mapping or in a comment.
region: Option<String>
For Cloud IAM: The location of the Policy. Must be empty or “global” for Policies owned by global IAM. Must name a region from prodspec/cloud-iam-cloudspec for Regional IAM Policies, see go/iam-faq#where-is-iam-currently-deployed. For Local IAM: This field should be set to “local”.
type_: Option<String>
Resource type. Types are defined in IAM’s .service files. Valid values for type might be ‘storage_buckets’, ‘compute_instances’, ‘resourcemanager_customers’, ‘billing_accounts’, etc.
Trait Implementations§
Source§impl Clone for PolicyName
impl Clone for PolicyName
Source§fn clone(&self) -> PolicyName
fn clone(&self) -> PolicyName
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PolicyName
impl Debug for PolicyName
Source§impl Default for PolicyName
impl Default for PolicyName
Source§fn default() -> PolicyName
fn default() -> PolicyName
Source§impl<'de> Deserialize<'de> for PolicyName
impl<'de> Deserialize<'de> for PolicyName
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for PolicyName
impl Serialize for PolicyName
impl Part for PolicyName
Auto Trait Implementations§
impl Freeze for PolicyName
impl RefUnwindSafe for PolicyName
impl Send for PolicyName
impl Sync for PolicyName
impl Unpin for PolicyName
impl UnwindSafe for PolicyName
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more