Struct aws_sdk_lambda::client::fluent_builders::AddLayerVersionPermission [−][src]
pub struct AddLayerVersionPermission<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to AddLayerVersionPermission
.
Adds permissions to the resource-based policy of a version of an Lambda layer. Use this action to grant layer usage permission to other accounts. You can grant permission to a single account, all accounts in an organization, or all Amazon Web Services accounts.
To revoke permission, call RemoveLayerVersionPermission with the statement ID that you specified when you added it.
Implementations
impl<C, M, R> AddLayerVersionPermission<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> AddLayerVersionPermission<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<AddLayerVersionPermissionOutput, SdkError<AddLayerVersionPermissionError>> where
R::Policy: SmithyRetryPolicy<AddLayerVersionPermissionInputOperationOutputAlias, AddLayerVersionPermissionOutput, AddLayerVersionPermissionError, AddLayerVersionPermissionInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<AddLayerVersionPermissionOutput, SdkError<AddLayerVersionPermissionError>> where
R::Policy: SmithyRetryPolicy<AddLayerVersionPermissionInputOperationOutputAlias, AddLayerVersionPermissionOutput, AddLayerVersionPermissionError, AddLayerVersionPermissionInputOperationRetryAlias>,
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 or Amazon Resource Name (ARN) of the layer.
The name or Amazon Resource Name (ARN) of the layer.
The version number.
The version number.
An identifier that distinguishes the policy from others on the same layer version.
An identifier that distinguishes the policy from others on the same layer version.
The API action that grants access to the layer. For example, lambda:GetLayerVersion
.
The API action that grants access to the layer. For example, lambda:GetLayerVersion
.
An account ID, or *
to grant layer usage permission to all
accounts in an organization, or all Amazon Web Services accounts (if organizationId
is not specified).
For the last case, make sure that you really do want all Amazon Web Services accounts to have usage permission to this layer.
An account ID, or *
to grant layer usage permission to all
accounts in an organization, or all Amazon Web Services accounts (if organizationId
is not specified).
For the last case, make sure that you really do want all Amazon Web Services accounts to have usage permission to this layer.
With the principal set to *
, grant permission to all accounts in the specified
organization.
With the principal set to *
, grant permission to all accounts in the specified
organization.
Only update the policy if the revision ID matches the ID specified. Use this option to avoid modifying a policy that has changed since you last read it.
Only update the policy if the revision ID matches the ID specified. Use this option to avoid modifying a policy that has changed since you last read it.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for AddLayerVersionPermission<C, M, R>
impl<C, M, R> Send for AddLayerVersionPermission<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for AddLayerVersionPermission<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for AddLayerVersionPermission<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for AddLayerVersionPermission<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