Class CfnLedger
A CloudFormation AWS::QLDB::Ledger
.
Inherited Members
Namespace: Amazon.CDK.AWS.QLDB
Assembly: Amazon.CDK.AWS.QLDB.dll
Syntax (csharp)
public class CfnLedger : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnLedger
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
The AWS::QLDB::Ledger
resource specifies a new Amazon Quantum Ledger Database (Amazon QLDB) ledger in your AWS account . Amazon QLDB is a fully managed ledger database that provides a transparent, immutable, and cryptographically verifiable transaction log owned by a central trusted authority. You can use QLDB to track all application data changes, and maintain a complete and verifiable history of changes over time.
For more information, see CreateLedger in the Amazon QLDB API Reference .
CloudformationResource: AWS::QLDB::Ledger
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qldb-ledger.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.QLDB;
var cfnLedger = new CfnLedger(this, "MyCfnLedger", new CfnLedgerProps {
PermissionsMode = "permissionsMode",
// the properties below are optional
DeletionProtection = false,
KmsKey = "kmsKey",
Name = "name",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
CfnLedger(Construct, String, ICfnLedgerProps) | Create a new |
CfnLedger(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnLedger(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
DeletionProtection | Specifies whether the ledger is protected from being deleted by any user. |
KmsKey | The key in AWS Key Management Service ( AWS KMS ) to use for encryption of data at rest in the ledger. |
Name | The name of the ledger that you want to create. |
PermissionsMode | The permissions mode to assign to the ledger that you want to create. |
Tags | An array of key-value pairs to apply to this resource. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnLedger(Construct, String, ICfnLedgerProps)
Create a new AWS::QLDB::Ledger
.
public CfnLedger(Construct scope, string id, ICfnLedgerProps props)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnLedgerProps
- resource properties.
CfnLedger(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnLedger(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnLedger(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnLedger(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
DeletionProtection
Specifies whether the ledger is protected from being deleted by any user.
public virtual object DeletionProtection { get; set; }
Property Value
System.Object
Remarks
If not defined during ledger creation, this feature is enabled ( true
) by default.
If deletion protection is enabled, you must first disable it before you can delete the ledger. You can disable it by calling the UpdateLedger
operation to set this parameter to false
.
KmsKey
The key in AWS Key Management Service ( AWS KMS ) to use for encryption of data at rest in the ledger.
public virtual string KmsKey { get; set; }
Property Value
System.String
Remarks
For more information, see Encryption at rest in the Amazon QLDB Developer Guide .
Use one of the following options to specify this parameter:
Amazon QLDB does not support asymmetric keys. For more information, see Using symmetric and asymmetric keys in the AWS Key Management Service Developer Guide .
To specify a customer managed KMS key, you can use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. When using an alias name, prefix it with "alias/"
. To specify a key in a different AWS account , you must use the key ARN or alias ARN.
For example:
For more information, see Key identifiers (KeyId) in the AWS Key Management Service Developer Guide .
Name
The name of the ledger that you want to create.
public virtual string Name { get; set; }
Property Value
System.String
Remarks
The name must be unique among all of the ledgers in your AWS account in the current Region.
Naming constraints for ledger names are defined in Quotas in Amazon QLDB in the Amazon QLDB Developer Guide .
PermissionsMode
The permissions mode to assign to the ledger that you want to create.
public virtual string PermissionsMode { get; set; }
Property Value
System.String
Remarks
This parameter can have one of the following values:
This mode allows users who have the SendCommand
API permission for this ledger to run all PartiQL commands (hence, ALLOW_ALL
) on any tables in the specified ledger. This mode disregards any table-level or command-level IAM permissions policies that you create for the ledger.
By default, this mode denies all user requests to run any PartiQL commands on any tables in this ledger. To allow PartiQL commands to run, you must create IAM permissions policies for specific table resources and PartiQL actions, in addition to the SendCommand
API permission for the ledger. For information, see Getting started with the standard permissions mode in the Amazon QLDB Developer Guide .
We strongly recommend using the <code>STANDARD</code> permissions mode to maximize the security of your ledger data.
Tags
An array of key-value pairs to apply to this resource.
public virtual TagManager Tags { get; }
Property Value
Remarks
For more information, see Tag .
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
- tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>