Amazon AppConfig

2020/06/15 - Amazon AppConfig - 4 new api methods

Changes  Update appconfig client to latest version

CreateHostedConfigurationVersion (new) Link ¶

Create a new configuration in the AppConfig configuration store.

See also: AWS API Documentation

Request Syntax

client.create_hosted_configuration_version(
    ApplicationId='string',
    ConfigurationProfileId='string',
    Description='string',
    Content=b'bytes'|file,
    ContentType='string',
    LatestVersionNumber=123
)
type ApplicationId:

string

param ApplicationId:

[REQUIRED]

The application ID.

type ConfigurationProfileId:

string

param ConfigurationProfileId:

[REQUIRED]

The configuration profile ID.

type Description:

string

param Description:

A description of the configuration.

type Content:

bytes or seekable file-like object

param Content:

[REQUIRED]

The content of the configuration or the configuration data.

type ContentType:

string

param ContentType:

[REQUIRED]

A standard MIME type describing the format of the configuration content. For more information, see Content-Type.

type LatestVersionNumber:

integer

param LatestVersionNumber:

An optional locking token used to prevent race conditions from overwriting configuration updates when creating a new version. To ensure your data is not overwritten when creating multiple hosted configuration versions in rapid succession, specify the version of the latest hosted configuration version.

rtype:

dict

returns:

Response Syntax

{
    'ApplicationId': 'string',
    'ConfigurationProfileId': 'string',
    'VersionNumber': 123,
    'Description': 'string',
    'Content': b'bytes'|file,
    'ContentType': 'string'
}

Response Structure

  • (dict) --

    • ApplicationId (string) --

      The application ID.

    • ConfigurationProfileId (string) --

      The configuration profile ID.

    • VersionNumber (integer) --

      The configuration version.

    • Description (string) --

      A description of the configuration.

    • Content (bytes or seekable file-like object) --

      The content of the configuration or the configuration data.

    • ContentType (string) --

      A standard MIME type describing the format of the configuration content. For more information, see Content-Type.

GetHostedConfigurationVersion (new) Link ¶

Get information about a specific configuration version.

See also: AWS API Documentation

Request Syntax

client.get_hosted_configuration_version(
    ApplicationId='string',
    ConfigurationProfileId='string',
    VersionNumber=123
)
type ApplicationId:

string

param ApplicationId:

[REQUIRED]

The application ID.

type ConfigurationProfileId:

string

param ConfigurationProfileId:

[REQUIRED]

The configuration profile ID.

type VersionNumber:

integer

param VersionNumber:

[REQUIRED]

The version.

rtype:

dict

returns:

Response Syntax

{
    'ApplicationId': 'string',
    'ConfigurationProfileId': 'string',
    'VersionNumber': 123,
    'Description': 'string',
    'Content': StreamingBody(),
    'ContentType': 'string'
}

Response Structure

  • (dict) --

    • ApplicationId (string) --

      The application ID.

    • ConfigurationProfileId (string) --

      The configuration profile ID.

    • VersionNumber (integer) --

      The configuration version.

    • Description (string) --

      A description of the configuration.

    • Content (:class:`.StreamingBody`) --

      The content of the configuration or the configuration data.

    • ContentType (string) --

      A standard MIME type describing the format of the configuration content. For more information, see Content-Type.

DeleteHostedConfigurationVersion (new) Link ¶

Delete a version of a configuration from the AppConfig configuration store.

See also: AWS API Documentation

Request Syntax

client.delete_hosted_configuration_version(
    ApplicationId='string',
    ConfigurationProfileId='string',
    VersionNumber=123
)
type ApplicationId:

string

param ApplicationId:

[REQUIRED]

The application ID.

type ConfigurationProfileId:

string

param ConfigurationProfileId:

[REQUIRED]

The configuration profile ID.

type VersionNumber:

integer

param VersionNumber:

[REQUIRED]

The versions number to delete.

returns:

None

ListHostedConfigurationVersions (new) Link ¶

View a list of configurations stored in the AppConfig configuration store by version.

See also: AWS API Documentation

Request Syntax

client.list_hosted_configuration_versions(
    ApplicationId='string',
    ConfigurationProfileId='string',
    MaxResults=123,
    NextToken='string'
)
type ApplicationId:

string

param ApplicationId:

[REQUIRED]

The application ID.

type ConfigurationProfileId:

string

param ConfigurationProfileId:

[REQUIRED]

The configuration profile ID.

type MaxResults:

integer

param MaxResults:

The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

type NextToken:

string

param NextToken:

A token to start the list. Use this token to get the next set of results.

rtype:

dict

returns:

Response Syntax

{
    'Items': [
        {
            'ApplicationId': 'string',
            'ConfigurationProfileId': 'string',
            'VersionNumber': 123,
            'Description': 'string',
            'ContentType': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • Items (list) --

      The elements from this collection.

      • (dict) --

        Information about the configuration.

        • ApplicationId (string) --

          The application ID.

        • ConfigurationProfileId (string) --

          The configuration profile ID.

        • VersionNumber (integer) --

          The configuration version.

        • Description (string) --

          A description of the configuration.

        • ContentType (string) --

          A standard MIME type describing the format of the configuration content. For more information, see Content-Type.

    • NextToken (string) --

      The token for the next set of items to return. Use this token to get the next set of results.