Skip to content

Commit

Permalink
Renamed Peering
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorinManaila committed Dec 3, 2024
1 parent 4bfad4b commit aadbeaf
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 18 deletions.
6 changes: 3 additions & 3 deletions Peering/.rpdk-config
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"artifact_type": "RESOURCE",
"typeName": "Redis::CloudFormation::SubscriptionPeering",
"typeName": "Redis::Cloud::Peering",
"language": "python311",
"runtime": "python3.11",
"entrypoint": "redis_cloudformation_subscriptionpeering.handlers.resource",
"testEntrypoint": "redis_cloudformation_subscriptionpeering.handlers.test_entrypoint",
"entrypoint": "redis_cloud_peering.handlers.resource",
"testEntrypoint": "redis_cloud_peering.handlers.test_entrypoint",
"settings": {
"version": false,
"subparser_name": null,
Expand Down
4 changes: 2 additions & 2 deletions Peering/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Redis::CloudFormation::SubscriptionPeering
# Redis::Cloud::Peering

Congratulations on starting development! Next steps:

1. Write the JSON schema describing your resource, `redis-cloudformation-subscriptionpeering.json`
2. Implement your resource handlers in `redis_cloudformation_subscriptionpeering/handlers.py`
2. Implement your resource handlers in `redis_cloud_peering/handlers.py`

> Don't modify `models.py` by hand, any modifications will be overwritten when the `generate` or `package` commands are run.
Expand Down
2 changes: 1 addition & 1 deletion Peering/SubscriptionPeering.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
AWSTemplateFormatVersion: 2010-09-09
Resources:
SubscriptionPeering:
Type: Redis::CloudFormation::SubscriptionPeering
Type: Redis::Cloud::Peering
Properties:
SubscriptionID: !Ref SubscriptionID
BaseUrl: !Ref BaseUrl
Expand Down
6 changes: 3 additions & 3 deletions Peering/docs/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Redis::CloudFormation::SubscriptionPeering
# Redis::Cloud::Peering

CloudFormation template for Subscription Peering.

Expand All @@ -10,7 +10,7 @@ To declare this entity in your AWS CloudFormation template, use the following sy

<pre>
{
"Type" : "Redis::CloudFormation::SubscriptionPeering",
"Type" : "Redis::Cloud::Peering",
"Properties" : {
"<a href="#baseurl" title="BaseUrl">BaseUrl</a>" : <i>String</i>,
"<a href="#subscriptionid" title="SubscriptionID">SubscriptionID</a>" : <i>String</i>,
Expand All @@ -29,7 +29,7 @@ To declare this entity in your AWS CloudFormation template, use the following sy
### YAML

<pre>
Type: Redis::CloudFormation::SubscriptionPeering
Type: Redis::Cloud::Peering
Properties:
<a href="#baseurl" title="BaseUrl">BaseUrl</a>: <i>String</i>
<a href="#subscriptionid" title="SubscriptionID">SubscriptionID</a>: <i>String</i>
Expand Down
2 changes: 1 addition & 1 deletion Peering/inputs/inputs_1_create.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"BaseUrl": "https://api-k8s-cloudapi.qa.redislabs.com",
"SubscriptionID": "187386",
"SubscriptionID": "187624",
"Provider": "AWS",
"Region": "eu-west-1",
"AwsAccountId": "178919255282",
Expand Down
2 changes: 1 addition & 1 deletion Peering/inputs/inputs_1_update.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"BaseUrl": "https://api-k8s-cloudapi.qa.redislabs.com",
"SubscriptionID": "187386",
"SubscriptionID": "187624",
"VpcCidrs": [
"10.10.50.0/24",
"10.10.60.0/24"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@
"additionalProperties": false
}
},
"typeName": "Redis::CloudFormation::SubscriptionPeering"
"typeName": "Redis::Cloud::Peering"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"typeName": "Redis::CloudFormation::SubscriptionPeering",
"typeName": "Redis::Cloud::Peering",
"description": "CloudFormation template for Subscription Peering.",
"tagging": {
"taggable": false
Expand Down
2 changes: 1 addition & 1 deletion Peering/resource-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Resources:
Ref: AWS::AccountId
StringLike:
aws:SourceArn:
Fn::Sub: arn:${AWS::Partition}:cloudformation:${AWS::Region}:${AWS::AccountId}:type/resource/Redis-CloudFormation-SubscriptionPeering/*
Fn::Sub: arn:${AWS::Partition}:cloudformation:${AWS::Region}:${AWS::AccountId}:type/resource/Redis-Cloud-Peering/*
Path: "/"
Policies:
- PolicyName: ResourceTypePolicy
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# Use this logger to forward log messages to CloudWatch Logs. NON BREAKING CHANGE TO NOT TRIGGER WORKFLOW
LOG = logging.getLogger(__name__)
TYPE_NAME = "Redis::CloudFormation::SubscriptionPeering"
TYPE_NAME = "Redis::Cloud::Peering"

resource = Resource(TYPE_NAME, ResourceModel, TypeConfigurationModel)
test_entrypoint = resource.test_entrypoint
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions Peering/template.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
AWSTemplateFormatVersion: "2010-09-09"
Transform: AWS::Serverless-2016-10-31
Description: AWS SAM template for the Redis::CloudFormation::SubscriptionPeering resource type
Description: AWS SAM template for the Redis::Cloud::Peering resource type

Globals:
Function:
Expand All @@ -11,14 +11,14 @@ Resources:
TypeFunction:
Type: AWS::Serverless::Function
Properties:
Handler: redis_cloudformation_subscriptionpeering.handlers.resource
Handler: redis_cloud_peering.handlers.resource
Runtime: python3.11
CodeUri: build/

TestEntrypoint:
Type: AWS::Serverless::Function
Properties:
Handler: redis_cloudformation_subscriptionpeering.handlers.test_entrypoint
Handler: redis_cloud_peering.handlers.test_entrypoint
Runtime: python3.11
CodeUri: build/

0 comments on commit aadbeaf

Please sign in to comment.