Skip to content

Secret

This class encapsulates and extends the ROS resource type DATASOURCE::KMS::Secret.

Initializers

using AlibabaCloud.SDK.ROS.CDK.Kms;
new Secret(Construct Scope, string Id, SecretProps Props, bool EnableResourcePropertyConstraint = null);
Name Type Description
Scope AlibabaCloud.SDK.ROS.CDK.Core.Construct No description.
Id string No description.
Props SecretProps No description.
EnableResourcePropertyConstraint bool No description.

ScopeRequired

  • Type: AlibabaCloud.SDK.ROS.CDK.Core.Construct

IdRequired

  • Type: string

PropsRequired


EnableResourcePropertyConstraintOptional

  • Type: bool

Methods

Name Description
ToString Returns a string representation of this construct.
Synthesize Allows this construct to emit artifacts into the cloud assembly during synthesis.
AddCondition No description.
AddCount No description.
AddDependency No description.
AddResourceDesc No description.
ApplyRemovalPolicy No description.
GetAtt No description.
SetMetadata No description.

ToString

private string ToString()

Returns a string representation of this construct.

Synthesize

private void Synthesize(ISynthesisSession Session)

Allows this construct to emit artifacts into the cloud assembly during synthesis.

This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.

SessionRequired

  • Type: AlibabaCloud.SDK.ROS.CDK.Core.ISynthesisSession

The synthesis session.


AddCondition

private void AddCondition(RosCondition Condition)

ConditionRequired

  • Type: AlibabaCloud.SDK.ROS.CDK.Core.RosCondition

AddCount

private void AddCount(object Count)

CountRequired

  • Type: object

AddDependency

private void AddDependency(Resource Resource)

ResourceRequired

  • Type: AlibabaCloud.SDK.ROS.CDK.Core.Resource

AddResourceDesc

private void AddResourceDesc(string Desc)

DescRequired

  • Type: string

ApplyRemovalPolicy

private void ApplyRemovalPolicy(RemovalPolicy Policy)

PolicyRequired

  • Type: AlibabaCloud.SDK.ROS.CDK.Core.RemovalPolicy

GetAtt

private IResolvable GetAtt(string Name)

NameRequired

  • Type: string

SetMetadata

private void SetMetadata(string Key, object Value)

KeyRequired

  • Type: string

ValueRequired

  • Type: object

Static Functions

Name Description
IsConstruct Return whether the given object is a Construct.

IsConstruct

using AlibabaCloud.SDK.ROS.CDK.Kms;
Secret.IsConstruct(object X);

Return whether the given object is a Construct.

XRequired

  • Type: object

Properties

Name Type Description
Node AlibabaCloud.SDK.ROS.CDK.Core.ConstructNode The construct tree node associated with this construct.
Ref string No description.
Stack AlibabaCloud.SDK.ROS.CDK.Core.Stack The stack in which this resource is defined.
Resource AlibabaCloud.SDK.ROS.CDK.Core.RosResource No description.
AttrArn AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute Arn: The Alibaba Cloud Resource Name (ARN) of the secret.
AttrAutomaticRotation AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute AutomaticRotation: Indicates whether automatic rotation is enabled.
AttrCreateTime AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute CreateTime: The time when the secret was created.
AttrDescription AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute Description: The description of the secret.
AttrDkmsInstanceId AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute DKMSInstanceId: The ID of the dedicated KMS instance.
AttrEncryptionKeyId AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute EncryptionKeyId: The ID of the customer master key (CMK) that is used to encrypt the secret value.
AttrExtendedConfig AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute ExtendedConfig: The extended configuration of the secret.
AttrLastRotationDate AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute LastRotationDate: The time when the last rotation was performed.
AttrNextRotationDate AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute NextRotationDate: The time when the next rotation will be performed.
AttrPlannedDeleteTime AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute PlannedDeleteTime: The time when the secret is scheduled to be deleted.
AttrRotationInterval AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute RotationInterval: The interval for automatic rotation.
AttrSecretName AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute SecretName: The name of the secret.
AttrSecretType AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute SecretType: The type of the secret.
AttrUpdateTime AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute UpdateTime: The time when the secret was updated.

NodeRequired

public ConstructNode Node { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.ConstructNode

The construct tree node associated with this construct.


RefRequired

public string Ref { get; }
  • Type: string

StackRequired

public Stack Stack { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.Stack

The stack in which this resource is defined.


ResourceOptional

public RosResource Resource { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.RosResource

AttrArnRequired

public IResolvable AttrArn { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute Arn: The Alibaba Cloud Resource Name (ARN) of the secret.


AttrAutomaticRotationRequired

public IResolvable AttrAutomaticRotation { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute AutomaticRotation: Indicates whether automatic rotation is enabled.


AttrCreateTimeRequired

public IResolvable AttrCreateTime { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute CreateTime: The time when the secret was created.


AttrDescriptionRequired

public IResolvable AttrDescription { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute Description: The description of the secret.


AttrDkmsInstanceIdRequired

public IResolvable AttrDkmsInstanceId { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute DKMSInstanceId: The ID of the dedicated KMS instance.


AttrEncryptionKeyIdRequired

public IResolvable AttrEncryptionKeyId { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute EncryptionKeyId: The ID of the customer master key (CMK) that is used to encrypt the secret value.


AttrExtendedConfigRequired

public IResolvable AttrExtendedConfig { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute ExtendedConfig: The extended configuration of the secret.


AttrLastRotationDateRequired

public IResolvable AttrLastRotationDate { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute LastRotationDate: The time when the last rotation was performed.


AttrNextRotationDateRequired

public IResolvable AttrNextRotationDate { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute NextRotationDate: The time when the next rotation will be performed.


AttrPlannedDeleteTimeRequired

public IResolvable AttrPlannedDeleteTime { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute PlannedDeleteTime: The time when the secret is scheduled to be deleted.


AttrRotationIntervalRequired

public IResolvable AttrRotationInterval { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute RotationInterval: The interval for automatic rotation.

The value is in the integer[unit] format. integer indicates the length of time. unit: indicates the time unit. The value of unit is fixed as s. For example, if the value is 604800s, automatic rotation is performed at a 7-day interval.The value is in the integer[unit] format. integer indicates the length of time. unit: indicates the time unit. The value of unit is fixed as s. For example, if the value is 604800s, automatic rotation is performed at a 7-day interval.


AttrSecretNameRequired

public IResolvable AttrSecretName { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute SecretName: The name of the secret.


AttrSecretTypeRequired

public IResolvable AttrSecretType { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute SecretType: The type of the secret.


AttrUpdateTimeRequired

public IResolvable AttrUpdateTime { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute UpdateTime: The time when the secret was updated.