Class EnvironmentPlaceholders
Placeholders which can be used manifests.
Inheritance
Namespace: Amazon.CDK.CXAPI
Assembly: Amazon.CDK.CXAPI.dll
Syntax (csharp)
public class EnvironmentPlaceholders : DeputyBase
Syntax (vb)
Public Class EnvironmentPlaceholders
Inherits DeputyBase
Remarks
These can occur both in the Asset Manifest as well as the general Cloud Assembly manifest.
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.CXAPI;
var environmentPlaceholders = new EnvironmentPlaceholders();
Synopsis
Constructors
EnvironmentPlaceholders() | |
EnvironmentPlaceholders(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
EnvironmentPlaceholders(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
CURRENT_ACCOUNT | Insert this into the destination fields to be replaced with the current account. |
CURRENT_PARTITION | Insert this into the destination fields to be replaced with the current partition. |
CURRENT_REGION | Insert this into the destination fields to be replaced with the current region. |
Methods
Replace(Object, IEnvironmentPlaceholderValues) | Replace the environment placeholders in all strings found in a complex object. |
ReplaceAsync(Object, IEnvironmentPlaceholderProvider) | Like 'replace', but asynchronous. |
Constructors
EnvironmentPlaceholders()
public EnvironmentPlaceholders()
EnvironmentPlaceholders(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected EnvironmentPlaceholders(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
EnvironmentPlaceholders(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected EnvironmentPlaceholders(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
CURRENT_ACCOUNT
Insert this into the destination fields to be replaced with the current account.
public static string CURRENT_ACCOUNT { get; }
Property Value
System.String
CURRENT_PARTITION
Insert this into the destination fields to be replaced with the current partition.
public static string CURRENT_PARTITION { get; }
Property Value
System.String
CURRENT_REGION
Insert this into the destination fields to be replaced with the current region.
public static string CURRENT_REGION { get; }
Property Value
System.String
Methods
Replace(Object, IEnvironmentPlaceholderValues)
Replace the environment placeholders in all strings found in a complex object.
public static object Replace(object object, IEnvironmentPlaceholderValues values)
Parameters
- object System.Object
- values IEnvironmentPlaceholderValues
Returns
System.Object
Remarks
Duplicated between cdk-assets and aws-cdk CLI because we don't have a good single place to put it (they're nominally independent tools).
ReplaceAsync(Object, IEnvironmentPlaceholderProvider)
Like 'replace', but asynchronous.
public static object ReplaceAsync(object object, IEnvironmentPlaceholderProvider provider)
Parameters
- object System.Object
- provider IEnvironmentPlaceholderProvider
Returns
System.Object