class ConfigurationContent
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppConfig.Alpha.ConfigurationContent |
Go | github.com/aws/aws-cdk-go/awscdkappconfigalpha/v2#ConfigurationContent |
Java | software.amazon.awscdk.services.appconfig.alpha.ConfigurationContent |
Python | aws_cdk.aws_appconfig_alpha.ConfigurationContent |
TypeScript (source) | @aws-cdk/aws-appconfig-alpha » ConfigurationContent |
⚠️ Deprecated: undefined
Defines the hosted configuration content.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as appconfig_alpha from '@aws-cdk/aws-appconfig-alpha';
const configurationContent = appconfig_alpha.ConfigurationContent.fromFile('inputPath', /* all optional props */ 'contentType');
Initializer
new ConfigurationContent()
⚠️ Deprecated: undefined
Properties
Name | Type | Description |
---|---|---|
content | string | The configuration content. |
content | string | The configuration content type. |
content
⚠️ Deprecated: undefined
Type:
string
The configuration content.
contentType
⚠️ Deprecated: undefined
Type:
string
The configuration content type.
Methods
Name | Description |
---|---|
static from | Defines the hosted configuration content from a file. |
static from | Defines the hosted configuration content from inline code. |
static from | Defines the hosted configuration content as JSON from inline code. |
static from | Defines the hosted configuration content as text from inline code. |
static from | Defines the hosted configuration content as YAML from inline code. |
File(inputPath, contentType?)
static frompublic static fromFile(inputPath: string, contentType?: string): ConfigurationContent
⚠️ Deprecated: undefined
Parameters
- inputPath
string
— The path to the file that defines configuration content. - contentType
string
— The content type of the configuration.
Returns
Defines the hosted configuration content from a file.
Inline(content, contentType?)
static frompublic static fromInline(content: string, contentType?: string): ConfigurationContent
⚠️ Deprecated: undefined
Parameters
- content
string
— The inline code that defines the configuration content. - contentType
string
— The content type of the configuration.
Returns
Defines the hosted configuration content from inline code.
InlineJson(content, contentType?)
static frompublic static fromInlineJson(content: string, contentType?: string): ConfigurationContent
⚠️ Deprecated: undefined
Parameters
- content
string
— The inline code that defines the configuration content. - contentType
string
— The content type of the configuration.
Returns
Defines the hosted configuration content as JSON from inline code.
InlineText(content)
static frompublic static fromInlineText(content: string): ConfigurationContent
⚠️ Deprecated: undefined
Parameters
- content
string
— The inline code that defines the configuration content.
Returns
Defines the hosted configuration content as text from inline code.
InlineYaml(content)
static frompublic static fromInlineYaml(content: string): ConfigurationContent
⚠️ Deprecated: undefined
Parameters
- content
string
— The inline code that defines the configuration content.
Returns
Defines the hosted configuration content as YAML from inline code.