Struct aws_sdk_codeguruprofiler::operation::put_permission::builders::PutPermissionInputBuilder
source · #[non_exhaustive]pub struct PutPermissionInputBuilder { /* private fields */ }
Expand description
A builder for PutPermissionInput
.
Implementations§
source§impl PutPermissionInputBuilder
impl PutPermissionInputBuilder
sourcepub fn profiling_group_name(self, input: impl Into<String>) -> Self
pub fn profiling_group_name(self, input: impl Into<String>) -> Self
The name of the profiling group to grant access to.
This field is required.sourcepub fn set_profiling_group_name(self, input: Option<String>) -> Self
pub fn set_profiling_group_name(self, input: Option<String>) -> Self
The name of the profiling group to grant access to.
sourcepub fn get_profiling_group_name(&self) -> &Option<String>
pub fn get_profiling_group_name(&self) -> &Option<String>
The name of the profiling group to grant access to.
sourcepub fn action_group(self, input: ActionGroup) -> Self
pub fn action_group(self, input: ActionGroup) -> Self
Specifies an action group that contains permissions to add to a profiling group resource. One action group is supported, agentPermissions
, which grants permission to perform actions required by the profiling agent, ConfigureAgent
and PostAgentProfile
permissions.
sourcepub fn set_action_group(self, input: Option<ActionGroup>) -> Self
pub fn set_action_group(self, input: Option<ActionGroup>) -> Self
Specifies an action group that contains permissions to add to a profiling group resource. One action group is supported, agentPermissions
, which grants permission to perform actions required by the profiling agent, ConfigureAgent
and PostAgentProfile
permissions.
sourcepub fn get_action_group(&self) -> &Option<ActionGroup>
pub fn get_action_group(&self) -> &Option<ActionGroup>
Specifies an action group that contains permissions to add to a profiling group resource. One action group is supported, agentPermissions
, which grants permission to perform actions required by the profiling agent, ConfigureAgent
and PostAgentProfile
permissions.
sourcepub fn principals(self, input: impl Into<String>) -> Self
pub fn principals(self, input: impl Into<String>) -> Self
Appends an item to principals
.
To override the contents of this collection use set_principals
.
A list ARNs for the roles and users you want to grant access to the profiling group. Wildcards are not are supported in the ARNs.
sourcepub fn set_principals(self, input: Option<Vec<String>>) -> Self
pub fn set_principals(self, input: Option<Vec<String>>) -> Self
A list ARNs for the roles and users you want to grant access to the profiling group. Wildcards are not are supported in the ARNs.
sourcepub fn get_principals(&self) -> &Option<Vec<String>>
pub fn get_principals(&self) -> &Option<Vec<String>>
A list ARNs for the roles and users you want to grant access to the profiling group. Wildcards are not are supported in the ARNs.
sourcepub fn revision_id(self, input: impl Into<String>) -> Self
pub fn revision_id(self, input: impl Into<String>) -> Self
A universally unique identifier (UUID) for the revision of the policy you are adding to the profiling group. Do not specify this when you add permissions to a profiling group for the first time. If a policy already exists on the profiling group, you must specify the revisionId
.
sourcepub fn set_revision_id(self, input: Option<String>) -> Self
pub fn set_revision_id(self, input: Option<String>) -> Self
A universally unique identifier (UUID) for the revision of the policy you are adding to the profiling group. Do not specify this when you add permissions to a profiling group for the first time. If a policy already exists on the profiling group, you must specify the revisionId
.
sourcepub fn get_revision_id(&self) -> &Option<String>
pub fn get_revision_id(&self) -> &Option<String>
A universally unique identifier (UUID) for the revision of the policy you are adding to the profiling group. Do not specify this when you add permissions to a profiling group for the first time. If a policy already exists on the profiling group, you must specify the revisionId
.
sourcepub fn build(self) -> Result<PutPermissionInput, BuildError>
pub fn build(self) -> Result<PutPermissionInput, BuildError>
Consumes the builder and constructs a PutPermissionInput
.
source§impl PutPermissionInputBuilder
impl PutPermissionInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<PutPermissionOutput, SdkError<PutPermissionError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<PutPermissionOutput, SdkError<PutPermissionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for PutPermissionInputBuilder
impl Clone for PutPermissionInputBuilder
source§fn clone(&self) -> PutPermissionInputBuilder
fn clone(&self) -> PutPermissionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PutPermissionInputBuilder
impl Debug for PutPermissionInputBuilder
source§impl Default for PutPermissionInputBuilder
impl Default for PutPermissionInputBuilder
source§fn default() -> PutPermissionInputBuilder
fn default() -> PutPermissionInputBuilder
source§impl PartialEq for PutPermissionInputBuilder
impl PartialEq for PutPermissionInputBuilder
source§fn eq(&self, other: &PutPermissionInputBuilder) -> bool
fn eq(&self, other: &PutPermissionInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.