Show / Hide Table of Contents

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

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversionpermission.html

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;

CfnLayerVersionPermissionProps 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 * , grant permission to all accounts in the specified organization.

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).

Properties

Action

The API action that grants access to the layer.

string Action { get; }
Property Value

System.String

Remarks

For example, lambda:GetLayerVersion .

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversionpermission.html#cfn-lambda-layerversionpermission-action

LayerVersionArn

The name or Amazon Resource Name (ARN) of the layer.

string LayerVersionArn { get; }
Property Value

System.String

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversionpermission.html#cfn-lambda-layerversionpermission-layerversionarn

OrganizationId

With the principal set to * , grant permission to all accounts in the specified organization.

virtual string OrganizationId { get; }
Property Value

System.String

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversionpermission.html#cfn-lambda-layerversionpermission-organizationid

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.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversionpermission.html#cfn-lambda-layerversionpermission-principal

Back to top Generated by DocFX