#[non_exhaustive]pub struct PutResourcePolicyInput {
pub policy: Option<String>,
pub resource_arn: Option<String>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.policy: Option<String>
A JSON-formatted resource policy. For more information, see Sharing a Project and Sharing a Report Group in the CodeBuild User Guide.
resource_arn: Option<String>
The ARN of the Project
or ReportGroup
resource you want to associate with a resource policy.
Implementations§
source§impl PutResourcePolicyInput
impl PutResourcePolicyInput
sourcepub fn policy(&self) -> Option<&str>
pub fn policy(&self) -> Option<&str>
A JSON-formatted resource policy. For more information, see Sharing a Project and Sharing a Report Group in the CodeBuild User Guide.
sourcepub fn resource_arn(&self) -> Option<&str>
pub fn resource_arn(&self) -> Option<&str>
The ARN of the Project
or ReportGroup
resource you want to associate with a resource policy.
source§impl PutResourcePolicyInput
impl PutResourcePolicyInput
sourcepub fn builder() -> PutResourcePolicyInputBuilder
pub fn builder() -> PutResourcePolicyInputBuilder
Creates a new builder-style object to manufacture PutResourcePolicyInput
.
Trait Implementations§
source§impl Clone for PutResourcePolicyInput
impl Clone for PutResourcePolicyInput
source§fn clone(&self) -> PutResourcePolicyInput
fn clone(&self) -> PutResourcePolicyInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PutResourcePolicyInput
impl Debug for PutResourcePolicyInput
source§impl PartialEq for PutResourcePolicyInput
impl PartialEq for PutResourcePolicyInput
source§fn eq(&self, other: &PutResourcePolicyInput) -> bool
fn eq(&self, other: &PutResourcePolicyInput) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PutResourcePolicyInput
Auto Trait Implementations§
impl RefUnwindSafe for PutResourcePolicyInput
impl Send for PutResourcePolicyInput
impl Sync for PutResourcePolicyInput
impl Unpin for PutResourcePolicyInput
impl UnwindSafe for PutResourcePolicyInput
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.