Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automated SDK generation @ aws-cloudformation-user-guide 19dc52cd3f2007d6d268b65b739ffb5ebf8c1e76 #1396

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
184 changes: 92 additions & 92 deletions aws-cloudformation-schema/aws-appconfig-configurationprofile.json
Original file line number Diff line number Diff line change
@@ -1,153 +1,153 @@
{
"sourceUrl" : "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-appconfig",
"tagging" : {
"taggable" : true,
"tagOnCreate" : true,
"tagUpdatable" : true,
"tagProperty" : "/properties/Tags",
"cloudFormationSystemTags" : true
},
"handlers" : {
"read" : {
"permissions" : [ "appconfig:GetConfigurationProfile", "appconfig:ListTagsForResource" ]
},
"create" : {
"permissions" : [ "appconfig:CreateConfigurationProfile", "appconfig:GetConfigurationProfile", "appconfig:TagResource", "appconfig:ListTagsForResource", "iam:PassRole" ]
},
"update" : {
"permissions" : [ "appconfig:UpdateConfigurationProfile", "appconfig:TagResource", "appconfig:UntagResource", "iam:PassRole" ]
},
"list" : {
"permissions" : [ "appconfig:ListConfigurationProfiles" ],
"handlerSchema" : {
"properties" : {
"ApplicationId" : {
"$ref" : "resource-schema.json#/properties/ApplicationId"
}
},
"required" : [ "ApplicationId" ]
}
},
"delete" : {
"permissions" : [ "appconfig:DeleteConfigurationProfile" ]
}
},
"typeName" : "AWS::AppConfig::ConfigurationProfile",
"readOnlyProperties" : [ "/properties/ConfigurationProfileId", "/properties/KmsKeyArn" ],
"description" : "An example resource schema demonstrating some basic constructs and validation rules.",
"sourceUrl" : "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-appconfig",
"createOnlyProperties" : [ "/properties/LocationUri", "/properties/Type", "/properties/ApplicationId" ],
"additionalProperties" : false,
"primaryIdentifier" : [ "/properties/ApplicationId", "/properties/ConfigurationProfileId" ],
"definitions" : {
"Validators" : {
"description" : "A list of methods for validating the configuration.",
"type" : "object",
"additionalProperties" : false,
"type" : "object",
"properties" : {
"Type" : {
"type" : "string",
"description" : "AWS AppConfig supports validators of type JSON_SCHEMA and LAMBDA."
"description" : "AWS AppConfig supports validators of type JSON_SCHEMA and LAMBDA.",
"type" : "string"
},
"Content" : {
"type" : "string",
"description" : "Either the JSON Schema content or the Amazon Resource Name (ARN) of an Lambda function.",
"minLength" : 0,
"description" : "Either the JSON Schema content or the Amazon Resource Name (ARN) of an Lambda function.",
"type" : "string",
"maxLength" : 32768
}
}
},
"Tags" : {
"description" : "Metadata to assign to the configuration profile. Tags help organize and categorize your AWS AppConfig resources. Each tag consists of a key and an optional value, both of which you define.",
"additionalProperties" : false,
"type" : "object",
"properties" : {
"Key" : {
"type" : "string",
"description" : "The key-value string map. The tag key can be up to 128 characters and must not start with aws:.",
"minLength" : 1,
"maxLength" : 128,
"pattern" : "^(?!aws:.)[a-zA-Z0-9 +=._:/-]*$"
},
"Value" : {
"type" : "string",
"description" : "The tag value can be up to 256 characters.",
"minLength" : 0,
"description" : "The tag value can be up to 256 characters.",
"type" : "string",
"maxLength" : 256
},
"Key" : {
"minLength" : 1,
"pattern" : "^(?!aws:.)[a-zA-Z0-9 +=._:/-]*$",
"description" : "The key-value string map. The tag key can be up to 128 characters and must not start with aws:.",
"type" : "string",
"maxLength" : 128
}
},
"additionalProperties" : false
}
}
},
"properties" : {
"ConfigurationProfileId" : {
"description" : "The configuration profile ID",
"type" : "string"
},
"LocationUri" : {
"type" : "string",
"description" : "A URI to locate the configuration. You can specify the AWS AppConfig hosted configuration store, Systems Manager (SSM) document, an SSM Parameter Store parameter, or an Amazon S3 object.",
"minLength" : 1,
"description" : "A URI to locate the configuration. You can specify the AWS AppConfig hosted configuration store, Systems Manager (SSM) document, an SSM Parameter Store parameter, or an Amazon S3 object.",
"type" : "string",
"maxLength" : 2048
},
"Type" : {
"type" : "string",
"pattern" : "^[a-zA-Z\\.]+",
"description" : "The type of configurations contained in the profile. When calling this API, enter one of the following values for Type: AWS.AppConfig.FeatureFlags, AWS.Freeform",
"pattern" : "^[a-zA-Z\\.]+"
"type" : "string"
},
"KmsKeyIdentifier" : {
"pattern" : "^[\\da-f]{8}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{12}|alias/[a-zA-Z0-9/_-]{1,250}|arn:aws[a-zA-Z-]*:kms:[a-z]{2}(-gov|-iso(b?))?-[a-z]+-\\d{1}:\\d{12}:(key/[0-9a-f-]{36}|alias/[a-zA-Z0-9/_-]{1,250})$",
"description" : "The AWS Key Management Service key identifier (key ID, key alias, or key ARN) provided when the resource was created or updated.",
"type" : "string"
},
"Description" : {
"type" : "string",
"description" : "A description of the configuration profile.",
"minLength" : 0,
"description" : "A description of the configuration profile.",
"type" : "string",
"maxLength" : 1024
},
"KmsKeyArn" : {
"minLength" : 20,
"pattern" : "arn:(aws[a-zA-Z-]*)?:[a-z]+:([a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1})?:(\\d{12})?:[a-zA-Z0-9-_/:.]+",
"description" : "The Amazon Resource Name of the AWS Key Management Service key to encrypt new configuration data versions in the AWS AppConfig hosted configuration store. This attribute is only used for hosted configuration types. To encrypt data managed in other configuration stores, see the documentation for how to specify an AWS KMS key for that particular service.",
"type" : "string",
"maxLength" : 2048
},
"Validators" : {
"type" : "array",
"description" : "A list of methods for validating the configuration.",
"maxItems" : 2,
"uniqueItems" : false,
"description" : "A list of methods for validating the configuration.",
"insertionOrder" : false,
"type" : "array",
"items" : {
"$ref" : "#/definitions/Validators"
},
"insertionOrder" : false,
"maxItems" : 2
}
},
"RetrievalRoleArn" : {
"type" : "string",
"description" : "The ARN of an IAM role with permission to access the configuration at the specified LocationUri.",
"minLength" : 20,
"maxLength" : 2048,
"pattern" : "^((arn):(aws|aws-cn|aws-iso|aws-iso-[a-z]{1}|aws-us-gov):(iam)::\\d{12}:role[/].*)$"
},
"ConfigurationProfileId" : {
"pattern" : "^((arn):(aws|aws-cn|aws-iso|aws-iso-[a-z]{1}|aws-us-gov):(iam)::\\d{12}:role[/].*)$",
"description" : "The ARN of an IAM role with permission to access the configuration at the specified LocationUri.",
"type" : "string",
"description" : "The configuration profile ID"
"maxLength" : 2048
},
"ApplicationId" : {
"type" : "string",
"pattern" : "[a-z0-9]{4,7}",
"description" : "The application ID.",
"pattern" : "[a-z0-9]{4,7}"
"type" : "string"
},
"Tags" : {
"type" : "array",
"description" : "Metadata to assign to the configuration profile. Tags help organize and categorize your AWS AppConfig resources. Each tag consists of a key and an optional value, both of which you define.",
"uniqueItems" : false,
"description" : "Metadata to assign to the configuration profile. Tags help organize and categorize your AWS AppConfig resources. Each tag consists of a key and an optional value, both of which you define.",
"insertionOrder" : false,
"type" : "array",
"items" : {
"$ref" : "#/definitions/Tags"
},
"insertionOrder" : false
}
},
"Name" : {
"type" : "string",
"description" : "A name for the configuration profile.",
"minLength" : 1,
"maxLength" : 128
},
"KmsKeyIdentifier" : {
"type" : "string",
"description" : "The AWS Key Management Service key identifier (key ID, key alias, or key ARN) provided when the resource was created or updated.",
"pattern" : "^[\\da-f]{8}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{12}|alias/[a-zA-Z0-9/_-]{1,250}|arn:aws[a-zA-Z-]*:kms:[a-z]{2}(-gov|-iso(b?))?-[a-z]+-\\d{1}:\\d{12}:(key/[0-9a-f-]{36}|alias/[a-zA-Z0-9/_-]{1,250})$"
},
"KmsKeyArn" : {
"description" : "A name for the configuration profile.",
"type" : "string",
"description" : "The Amazon Resource Name of the AWS Key Management Service key to encrypt new configuration data versions in the AWS AppConfig hosted configuration store. This attribute is only used for hosted configuration types. To encrypt data managed in other configuration stores, see the documentation for how to specify an AWS KMS key for that particular service.",
"minLength" : 20,
"maxLength" : 2048,
"pattern" : "arn:(aws[a-zA-Z-]*)?:[a-z]+:([a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1})?:(\\d{12})?:[a-zA-Z0-9-_/:.]+"
}
},
"additionalProperties" : false,
"required" : [ "LocationUri", "ApplicationId", "Name" ],
"createOnlyProperties" : [ "/properties/LocationUri", "/properties/Type", "/properties/ApplicationId" ],
"primaryIdentifier" : [ "/properties/ApplicationId", "/properties/ConfigurationProfileId" ],
"readOnlyProperties" : [ "/properties/ConfigurationProfileId", "/properties/KmsKeyArn" ],
"handlers" : {
"create" : {
"permissions" : [ "appconfig:CreateConfigurationProfile", "appconfig:GetConfigurationProfile", "appconfig:TagResource", "appconfig:ListTagsForResource", "iam:PassRole" ]
},
"read" : {
"permissions" : [ "appconfig:GetConfigurationProfile", "appconfig:ListTagsForResource" ]
},
"update" : {
"permissions" : [ "appconfig:UpdateConfigurationProfile", "appconfig:TagResource", "appconfig:UntagResource", "iam:PassRole" ]
},
"delete" : {
"permissions" : [ "appconfig:DeleteConfigurationProfile" ]
},
"list" : {
"handlerSchema" : {
"properties" : {
"ApplicationId" : {
"$ref" : "resource-schema.json#/properties/ApplicationId"
}
},
"required" : [ "ApplicationId" ]
},
"permissions" : [ "appconfig:ListConfigurationProfiles" ]
"maxLength" : 128
}
},
"tagging" : {
"taggable" : true,
"tagOnCreate" : true,
"tagUpdatable" : true,
"cloudFormationSystemTags" : true,
"tagProperty" : "/properties/Tags"
}
"required" : [ "LocationUri", "ApplicationId", "Name" ]
}
3 changes: 3 additions & 0 deletions aws-cloudformation-schema/aws-appconfig-extension.json
Original file line number Diff line number Diff line change
@@ -123,6 +123,9 @@
"minLength" : 0,
"maxLength" : 1024
},
"Dynamic" : {
"type" : "boolean"
},
"Required" : {
"type" : "boolean"
}
Loading

Unchanged files with check annotations Beta

/// <summary>
/// An operator that includes events that match the exact value of the event record field specified as the value of Field. This is the only valid operator that you can use with the readOnly, eventCategory, and resources.type fields.
/// </summary>
public InputList<string> Equals

Check warning on line 36 in sdk/dotnet/CloudTrail/Inputs/EventDataStoreAdvancedFieldSelectorArgs.cs

GitHub Actions / build_sdks (dotnet)

'EventDataStoreAdvancedFieldSelectorArgs.Equals' hides inherited member 'object.Equals(object?)'. Use the new keyword if hiding was intended.

Check warning on line 36 in sdk/dotnet/CloudTrail/Inputs/EventDataStoreAdvancedFieldSelectorArgs.cs

GitHub Actions / build_sdks (dotnet)

'EventDataStoreAdvancedFieldSelectorArgs.Equals' hides inherited member 'object.Equals(object?)'. Use the new keyword if hiding was intended.
{
get => _equals ?? (_equals = new InputList<string>());
set => _equals = value;
/// <summary>
/// An operator that includes events that match the exact value of the event record field specified as the value of Field. This is the only valid operator that you can use with the readOnly, eventCategory, and resources.type fields.
/// </summary>
public InputList<string> Equals

Check warning on line 36 in sdk/dotnet/CloudTrail/Inputs/TrailAdvancedFieldSelectorArgs.cs

GitHub Actions / build_sdks (dotnet)

'TrailAdvancedFieldSelectorArgs.Equals' hides inherited member 'object.Equals(object?)'. Use the new keyword if hiding was intended.
{
get => _equals ?? (_equals = new InputList<string>());
set => _equals = value;
/// <summary>
/// An operator that includes events that match the exact value of the event record field specified as the value of Field. This is the only valid operator that you can use with the readOnly, eventCategory, and resources.type fields.
/// </summary>
public readonly ImmutableArray<string> Equals;

Check warning on line 26 in sdk/dotnet/CloudTrail/Outputs/EventDataStoreAdvancedFieldSelector.cs

GitHub Actions / build_sdks (dotnet)

'EventDataStoreAdvancedFieldSelector.Equals' hides inherited member 'object.Equals(object?)'. Use the new keyword if hiding was intended.
/// <summary>
/// A field in an event record on which to filter events to be logged. Supported fields include readOnly, eventCategory, eventSource (for management events), eventName, resources.type, and resources.ARN.
/// </summary>
/// <summary>
/// An operator that includes events that match the exact value of the event record field specified as the value of Field. This is the only valid operator that you can use with the readOnly, eventCategory, and resources.type fields.
/// </summary>
public readonly ImmutableArray<string> Equals;

Check warning on line 26 in sdk/dotnet/CloudTrail/Outputs/TrailAdvancedFieldSelector.cs

GitHub Actions / build_sdks (dotnet)

'TrailAdvancedFieldSelector.Equals' hides inherited member 'object.Equals(object?)'. Use the new keyword if hiding was intended.
/// <summary>
/// A field in an event record on which to filter events to be logged. Supported fields include readOnly, eventCategory, eventSource (for management events), eventName, resources.type, and resources.ARN.
/// </summary>
[Input("equals")]
private InputList<string>? _equals;
public InputList<string> Equals

Check warning on line 25 in sdk/dotnet/GuardDuty/Inputs/FilterConditionArgs.cs

GitHub Actions / build_sdks (dotnet)

'FilterConditionArgs.Equals' hides inherited member 'object.Equals(object?)'. Use the new keyword if hiding was intended.
{
get => _equals ?? (_equals = new InputList<string>());
set => _equals = value;
public sealed class FilterCondition
{
public readonly ImmutableArray<string> Eq;
public readonly ImmutableArray<string> Equals;

Check warning on line 17 in sdk/dotnet/GuardDuty/Outputs/FilterCondition.cs

GitHub Actions / build_sdks (dotnet)

'FilterCondition.Equals' hides inherited member 'object.Equals(object?)'. Use the new keyword if hiding was intended.
public readonly int? GreaterThan;
public readonly int? GreaterThanOrEqual;
public readonly int? Gt;
public ProviderArgs()
{
Profile = Utilities.GetEnv("AWS_PROFILE");

Check warning on line 246 in sdk/dotnet/Provider.cs

GitHub Actions / build_sdks (dotnet)

Possible null reference argument for parameter 'value' in 'Input<string>.implicit operator Input<string>(string value)'.
Region = Utilities.GetEnv("AWS_REGION", "AWS_DEFAULT_REGION");

Check warning on line 247 in sdk/dotnet/Provider.cs

GitHub Actions / build_sdks (dotnet)

Possible null reference argument for parameter 'value' in 'Input<string>.implicit operator Input<string>(string value)'.
SharedCredentialsFile = Utilities.GetEnv("AWS_SHARED_CREDENTIALS_FILE");

Check warning on line 248 in sdk/dotnet/Provider.cs

GitHub Actions / build_sdks (dotnet)

Possible null reference argument for parameter 'value' in 'Input<string>.implicit operator Input<string>(string value)'.
SkipCredentialsValidation = true;
SkipGetEc2Platforms = true;
SkipMetadataApiCheck = true;