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

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

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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