Struct aws_sdk_codeguruprofiler::client::fluent_builders::PutPermission [−][src]
pub struct PutPermission<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
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
impl<C, M, R> PutPermission<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> PutPermission<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<PutPermissionOutput, SdkError<PutPermissionError>> where
R::Policy: SmithyRetryPolicy<PutPermissionInputOperationOutputAlias, PutPermissionOutput, PutPermissionError, PutPermissionInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<PutPermissionOutput, SdkError<PutPermissionError>> where
R::Policy: SmithyRetryPolicy<PutPermissionInputOperationOutputAlias, PutPermissionOutput, PutPermissionError, PutPermissionInputOperationRetryAlias>,
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.
The name of the profiling group to grant access to.
The name of the profiling group to grant access to.
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.
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.
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.
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.
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
.
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
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for PutPermission<C, M, R>
impl<C, M, R> Unpin for PutPermission<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for PutPermission<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more