Class CfnLayerVersionPermissionProps
Properties for defining a CfnLayerVersionPermission
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnLayerVersionPermissionProps : Object, ICfnLayerVersionPermissionProps
Syntax (vb)
Public Class CfnLayerVersionPermissionProps
Inherits Object
Implements 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
Constructors
CfnLayerVersionPermissionProps() |
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 |
Constructors
CfnLayerVersionPermissionProps()
public CfnLayerVersionPermissionProps()
Properties
Action
The API action that grants access to the layer.
public string Action { get; set; }
Property Value
System.String
Remarks
For example, lambda:GetLayerVersion
.
LayerVersionArn
The name or Amazon Resource Name (ARN) of the layer.
public string LayerVersionArn { get; set; }
Property Value
System.String
Remarks
OrganizationId
With the principal set to *
, grant permission to all accounts in the specified organization.
public string OrganizationId { get; set; }
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).
public string Principal { get; set; }
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.