Enum scratchstack_aspen::PolicySource
source · [−]pub enum PolicySource {
EntityInline {
entity_arn: String,
entity_id: String,
policy_name: String,
},
EntityAttachedPolicy {
policy_arn: String,
policy_id: String,
version: String,
},
GroupInline {
group_arn: String,
group_id: String,
policy_name: String,
},
GroupAttachedPolicy {
group_arn: String,
group_id: String,
policy_arn: String,
policy_id: String,
version: String,
},
Resource {
resource_arn: String,
policy_name: Option<String>,
},
PermissionBoundary {
policy_arn: String,
policy_id: String,
version: String,
},
OrgServiceControl {
policy_arn: String,
policy_name: String,
applied_arn: String,
},
Session,
}
Expand description
The source of a policy.
Variants
EntityInline
EntityAttachedPolicy
GroupInline
GroupAttachedPolicy
Resource
PermissionBoundary
OrgServiceControl
Session
Implementations
sourceimpl PolicySource
impl PolicySource
pub fn is_boundary(&self) -> bool
pub fn new_entity_inline<S1, S2, S3>(
entity_arn: S1,
entity_id: S2,
policy_name: S3
) -> Selfwhere
S1: Into<String>,
S2: Into<String>,
S3: Into<String>,
pub fn new_entity_attached_policy<S1, S2, S3>(
policy_arn: S1,
policy_id: S2,
version: S3
) -> Selfwhere
S1: Into<String>,
S2: Into<String>,
S3: Into<String>,
pub fn new_group_inline<S1, S2, S3>(
group_arn: S1,
group_id: S2,
policy_name: S3
) -> Selfwhere
S1: Into<String>,
S2: Into<String>,
S3: Into<String>,
pub fn new_group_attached_policy<S1, S2, S3, S4, S5>(
group_arn: S1,
group_id: S2,
policy_arn: S3,
policy_id: S4,
version: S5
) -> Selfwhere
S1: Into<String>,
S2: Into<String>,
S3: Into<String>,
S4: Into<String>,
S5: Into<String>,
pub fn new_resource<S1, S2>(resource_arn: S1, policy_name: Option<S2>) -> Selfwhere
S1: Into<String>,
S2: Into<String>,
pub fn new_permission_boundary<S1, S2, S3>(
policy_arn: S1,
policy_id: S2,
version: S3
) -> Selfwhere
S1: Into<String>,
S2: Into<String>,
S3: Into<String>,
pub fn new_org_service_control<S1, S2, S3>(
policy_arn: S1,
policy_name: S2,
applied_arn: S3
) -> Selfwhere
S1: Into<String>,
S2: Into<String>,
S3: Into<String>,
pub fn new_session() -> Self
Trait Implementations
sourceimpl Clone for PolicySource
impl Clone for PolicySource
sourcefn clone(&self) -> PolicySource
fn clone(&self) -> PolicySource
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PolicySource
impl Debug for PolicySource
sourceimpl Hash for PolicySource
impl Hash for PolicySource
sourceimpl PartialEq<PolicySource> for PolicySource
impl PartialEq<PolicySource> for PolicySource
sourcefn eq(&self, other: &PolicySource) -> bool
fn eq(&self, other: &PolicySource) -> bool
impl Eq for PolicySource
impl StructuralEq for PolicySource
impl StructuralPartialEq for PolicySource
Auto Trait Implementations
impl RefUnwindSafe for PolicySource
impl Send for PolicySource
impl Sync for PolicySource
impl Unpin for PolicySource
impl UnwindSafe for PolicySource
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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