pub struct PutPermission { /* private fields */ }
Expand description
Fluent builder constructing a request to PutPermission
.
Adds permissions to a profiling group's resource-based policy that are provided using an action group. If a profiling group doesn't have a resource-based policy, one is created for it using the permissions in the action group and the roles and users in the principals
parameter.
The one supported action group that can be added is agentPermission
which grants ConfigureAgent
and PostAgent
permissions. For more information, see Resource-based policies in CodeGuru Profiler in the Amazon CodeGuru Profiler User Guide, ConfigureAgent
, and PostAgentProfile
.
The first time you call PutPermission
on a profiling group, do not specify a revisionId
because it doesn't have a resource-based policy. Subsequent calls must provide a revisionId
to specify which revision of the resource-based policy to add the permissions to.
The response contains the profiling group's JSON-formatted resource policy.
Implementations§
source§impl PutPermission
impl PutPermission
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<PutPermission, AwsResponseRetryClassifier>, SdkError<PutPermissionError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<PutPermission, AwsResponseRetryClassifier>, SdkError<PutPermissionError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<PutPermissionOutput, SdkError<PutPermissionError>>
pub async fn send(
self
) -> Result<PutPermissionOutput, SdkError<PutPermissionError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
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.
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 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 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 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
.
Trait Implementations§
source§impl Clone for PutPermission
impl Clone for PutPermission
source§fn clone(&self) -> PutPermission
fn clone(&self) -> PutPermission
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more