Interface ICfnLayerVersionPermissionProps
Properties for defining a CfnLayerVersionPermission
.
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.AWS.Lambda.dll
Syntax (csharp)
public interface ICfnLayerVersionPermissionProps
Syntax (vb)
Public Interface ICfnLayerVersionPermissionProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lambda;
var cfnLayerVersionPermissionProps = new CfnLayerVersionPermissionProps {
Action = "action",
LayerVersionArn = "layerVersionArn",
Principal = "principal",
// the properties below are optional
OrganizationId = "organizationId"
};
Synopsis
Properties
Action | The API action that grants access to the layer. |
LayerVersionArn | The name or Amazon Resource Name (ARN) of the layer. |
OrganizationId | With the principal set to |
Principal | An account ID, or |
Properties
Action
The API action that grants access to the layer.
string Action { get; }
Property Value
System.String
Remarks
For example, lambda:GetLayerVersion
.
LayerVersionArn
The name or Amazon Resource Name (ARN) of the layer.
string LayerVersionArn { get; }
Property Value
System.String
Remarks
OrganizationId
With the principal set to *
, grant permission to all accounts in the specified organization.
virtual string OrganizationId { get; }
Property Value
System.String
Remarks
Principal
An account ID, or *
to grant layer usage permission to all accounts in an organization, or all AWS accounts (if organizationId
is not specified).
string Principal { get; }
Property Value
System.String
Remarks
For the last case, make sure that you really do want all AWS accounts to have usage permission to this layer.