Class HostedConfiguration
A hosted configuration represents configuration stored in the AWS AppConfig hosted configuration store.
Inheritance
Namespace: Amazon.CDK.AWS.AppConfig
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class HostedConfiguration : Construct, IConfiguration, IExtensible
Syntax (vb)
Public Class HostedConfiguration
Inherits Construct
Implements IConfiguration, IExtensible
Remarks
ExampleMetadata: infused
Examples
var app = new Application(this, "MyApp");
var env = new Environment(this, "MyEnv", new EnvironmentProps {
Application = app
});
new HostedConfiguration(this, "MyHostedConfig", new HostedConfigurationProps {
Application = app,
DeployTo = new [] { env },
Content = ConfigurationContent.FromInlineText("This is my configuration content.")
});
Synopsis
Constructors
Hosted |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Hosted |
Used by jsii to construct an instance of this class from DeputyProps |
Hosted |
Properties
Application | The application associated with the configuration. |
Application |
|
Configuration |
The Amazon Resource Name (ARN) of the configuration profile. |
Configuration |
The ID of the configuration profile. |
Content | The content of the hosted configuration. |
Content |
The content type of the hosted configuration. |
Deployment |
The deployment key for the configuration. |
Deployment |
The deployment strategy for the configuration. |
Deploy |
The environments to deploy to. |
Description | The description of the configuration. |
Extensible | |
Hosted |
The Amazon Resource Name (ARN) of the hosted configuration version. |
Latest |
The latest version number of the hosted configuration. |
Name | The name of the configuration. |
Type | The configuration type. |
Validators | The validators for the configuration. |
Version |
The version label of the hosted configuration. |
Version |
The version number of the hosted configuration. |
Methods
Add |
|
Add |
Adds an extension association to the configuration profile. |
At |
Adds an AT_DEPLOYMENT_TICK extension with the provided event destination and also creates an extension association to an application. |
Deploy |
|
On(Action |
Adds an extension defined by the action point and event destination and also creates an extension association to the configuration profile. |
On |
Adds an ON_DEPLOYMENT_BAKING extension with the provided event destination and also creates an extension association to the configuration profile. |
On |
Adds an ON_DEPLOYMENT_COMPLETE extension with the provided event destination and also creates an extension association to the configuration profile. |
On |
Adds an ON_DEPLOYMENT_ROLLED_BACK extension with the provided event destination and also creates an extension association to the configuration profile. |
On |
Adds an ON_DEPLOYMENT_START extension with the provided event destination and also creates an extension association to the configuration profile. |
On |
Adds an ON_DEPLOYMENT_STEP extension with the provided event destination and also creates an extension association to the configuration profile. |
Pre |
Adds a PRE_CREATE_HOSTED_CONFIGURATION_VERSION extension with the provided event destination and also creates an extension association to the configuration profile. |
Pre |
Adds a PRE_START_DEPLOYMENT extension with the provided event destination and also creates an extension association to the configuration profile. |
Constructors
HostedConfiguration(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected HostedConfiguration(ByRefValue reference)
Parameters
- reference Amazon.
JSII. Runtime. Deputy. By Ref Value The Javascript-owned object reference
HostedConfiguration(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected HostedConfiguration(DeputyBase.DeputyProps props)
Parameters
- props Amazon.
JSII. Runtime. Deputy. Deputy Base. Deputy Props The deputy props
HostedConfiguration(Construct, String, IHostedConfigurationProps)
public HostedConfiguration(Construct scope, string id, IHostedConfigurationProps props)
Parameters
- scope Constructs.
Construct - id System.
String - props IHosted
Configuration Props
Properties
Application
The application associated with the configuration.
public virtual IApplication Application { get; }
Property Value
ApplicationId
protected virtual string ApplicationId { get; set; }
Property Value
System.
ConfigurationProfileArn
The Amazon Resource Name (ARN) of the configuration profile.
public virtual string ConfigurationProfileArn { get; }
Property Value
System.
ConfigurationProfileId
The ID of the configuration profile.
public virtual string ConfigurationProfileId { get; }
Property Value
System.
Content
The content of the hosted configuration.
public virtual string Content { get; }
Property Value
System.
ContentType
The content type of the hosted configuration.
public virtual string ContentType { get; }
Property Value
System.
DeploymentKey
The deployment key for the configuration.
public virtual IKey DeploymentKey { get; }
Property Value
DeploymentStrategy
The deployment strategy for the configuration.
public virtual IDeploymentStrategy DeploymentStrategy { get; }
Property Value
DeployTo
The environments to deploy to.
public virtual IEnvironment[] DeployTo { get; }
Property Value
Description
The description of the configuration.
public virtual string Description { get; }
Property Value
System.
Extensible
HostedConfigurationVersionArn
The Amazon Resource Name (ARN) of the hosted configuration version.
public virtual string HostedConfigurationVersionArn { get; }
Property Value
System.
LatestVersionNumber
The latest version number of the hosted configuration.
public virtual Nullable<double> LatestVersionNumber { get; }
Property Value
System.
Name
The name of the configuration.
public virtual string Name { get; }
Property Value
System.
Type
The configuration type.
public virtual Nullable<ConfigurationType> Type { get; }
Property Value
System.
Validators
The validators for the configuration.
public virtual IValidator[] Validators { get; }
Property Value
VersionLabel
The version label of the hosted configuration.
public virtual string VersionLabel { get; }
Property Value
System.
VersionNumber
The version number of the hosted configuration.
public virtual string VersionNumber { get; }
Property Value
System.
Methods
AddExistingEnvironmentsToApplication()
protected virtual void AddExistingEnvironmentsToApplication()
AddExtension(IExtension)
Adds an extension association to the configuration profile.
public virtual void AddExtension(IExtension extension)
Parameters
- extension IExtension
The extension to create an association for.
AtDeploymentTick(IEventDestination, IExtensionOptions)
Adds an AT_DEPLOYMENT_TICK extension with the provided event destination and also creates an extension association to an application.
public virtual void AtDeploymentTick(IEventDestination eventDestination, IExtensionOptions options = null)
Parameters
- eventDestination IEvent
Destination The event that occurs during the extension.
- options IExtension
Options Options for the extension.
DeployConfigToEnvironments()
protected virtual void DeployConfigToEnvironments()
On(ActionPoint, IEventDestination, IExtensionOptions)
Adds an extension defined by the action point and event destination and also creates an extension association to the configuration profile.
public virtual void On(ActionPoint actionPoint, IEventDestination eventDestination, IExtensionOptions options = null)
Parameters
- actionPoint Action
Point The action point which triggers the event.
- eventDestination IEvent
Destination The event that occurs during the extension.
- options IExtension
Options Options for the extension.
OnDeploymentBaking(IEventDestination, IExtensionOptions)
Adds an ON_DEPLOYMENT_BAKING extension with the provided event destination and also creates an extension association to the configuration profile.
public virtual void OnDeploymentBaking(IEventDestination eventDestination, IExtensionOptions options = null)
Parameters
- eventDestination IEvent
Destination The event that occurs during the extension.
- options IExtension
Options Options for the extension.
OnDeploymentComplete(IEventDestination, IExtensionOptions)
Adds an ON_DEPLOYMENT_COMPLETE extension with the provided event destination and also creates an extension association to the configuration profile.
public virtual void OnDeploymentComplete(IEventDestination eventDestination, IExtensionOptions options = null)
Parameters
- eventDestination IEvent
Destination The event that occurs during the extension.
- options IExtension
Options Options for the extension.
OnDeploymentRolledBack(IEventDestination, IExtensionOptions)
Adds an ON_DEPLOYMENT_ROLLED_BACK extension with the provided event destination and also creates an extension association to the configuration profile.
public virtual void OnDeploymentRolledBack(IEventDestination eventDestination, IExtensionOptions options = null)
Parameters
- eventDestination IEvent
Destination The event that occurs during the extension.
- options IExtension
Options Options for the extension.
OnDeploymentStart(IEventDestination, IExtensionOptions)
Adds an ON_DEPLOYMENT_START extension with the provided event destination and also creates an extension association to the configuration profile.
public virtual void OnDeploymentStart(IEventDestination eventDestination, IExtensionOptions options = null)
Parameters
- eventDestination IEvent
Destination The event that occurs during the extension.
- options IExtension
Options Options for the extension.
OnDeploymentStep(IEventDestination, IExtensionOptions)
Adds an ON_DEPLOYMENT_STEP extension with the provided event destination and also creates an extension association to the configuration profile.
public virtual void OnDeploymentStep(IEventDestination eventDestination, IExtensionOptions options = null)
Parameters
- eventDestination IEvent
Destination The event that occurs during the extension.
- options IExtension
Options Options for the extension.
PreCreateHostedConfigurationVersion(IEventDestination, IExtensionOptions)
Adds a PRE_CREATE_HOSTED_CONFIGURATION_VERSION extension with the provided event destination and also creates an extension association to the configuration profile.
public virtual void PreCreateHostedConfigurationVersion(IEventDestination eventDestination, IExtensionOptions options = null)
Parameters
- eventDestination IEvent
Destination The event that occurs during the extension.
- options IExtension
Options Options for the extension.
PreStartDeployment(IEventDestination, IExtensionOptions)
Adds a PRE_START_DEPLOYMENT extension with the provided event destination and also creates an extension association to the configuration profile.
public virtual void PreStartDeployment(IEventDestination eventDestination, IExtensionOptions options = null)
Parameters
- eventDestination IEvent
Destination The event that occurs during the extension.
- options IExtension
Options Options for the extension.