Skip to content

Commit 6026ae8

Browse files
committed
refactor: rename unicorn properties to unicorn approvals
1 parent 08b7878 commit 6026ae8

58 files changed

Lines changed: 29 additions & 29 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

unicorn_properties/integration/PublicationEvaluationCompleted.json renamed to unicorn_approvals/integration/PublicationEvaluationCompleted.json

File renamed without changes.

unicorn_properties/integration/event-schemas.yaml renamed to unicorn_approvals/integration/event-schemas.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Resources:
1818
Properties:
1919
Description: 'Event schemas for Unicorn Properties'
2020
RegistryName:
21-
Fn::Sub: "{{resolve:ssm:/uni-prop/UnicornPropertiesNamespace}}-${Stage}"
21+
Fn::Sub: "{{resolve:ssm:/uni-prop/UnicornApprovalsNamespace}}-${Stage}"
2222

2323
EventRegistryPolicy:
2424
Type: AWS::EventSchemas::RegistryPolicy
@@ -52,7 +52,7 @@ Resources:
5252
RegistryName:
5353
Fn::GetAtt: EventRegistry.RegistryName
5454
SchemaName:
55-
Fn::Sub: '{{resolve:ssm:/uni-prop/UnicornPropertiesNamespace}}@PublicationEvaluationCompleted'
55+
Fn::Sub: '{{resolve:ssm:/uni-prop/UnicornApprovalsNamespace}}@PublicationEvaluationCompleted'
5656
Description: 'The schema for when a property evaluation is completed'
5757
Content:
5858
Fn::Sub: |

unicorn_properties/integration/subscriber-policies.yaml renamed to unicorn_approvals/integration/subscriber-policies.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Resources:
2020
Type: AWS::Events::EventBusPolicy
2121
Properties:
2222
EventBusName:
23-
Fn::Sub: "{{resolve:ssm:/uni-prop/${Stage}/UnicornPropertiesEventBus}}"
23+
Fn::Sub: "{{resolve:ssm:/uni-prop/${Stage}/UnicornApprovalsEventBus}}"
2424
StatementId:
2525
Fn::Sub: "OnlyRulesForPropertiesServiceEvents-${Stage}"
2626
Statement:
@@ -40,7 +40,7 @@ Resources:
4040
- Fn::Sub:
4141
- arn:${AWS::Partition}:events:${AWS::Region}:${AWS::AccountId}:rule/${eventBusName}/*
4242
- eventBusName:
43-
Fn::Sub: "{{resolve:ssm:/uni-prop/${Stage}/UnicornPropertiesEventBus}}"
43+
Fn::Sub: "{{resolve:ssm:/uni-prop/${Stage}/UnicornApprovalsEventBus}}"
4444
Condition:
4545
StringEqualsIfExists:
4646
"events:creatorAccount": "${aws:PrincipalAccount}"

unicorn_properties/integration/subscriptions.yaml renamed to unicorn_approvals/integration/subscriptions.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Resources:
3232
Targets:
3333
- Id: SendEventTo
3434
Arn:
35-
Fn::Sub: "{{resolve:ssm:/uni-prop/${Stage}/UnicornPropertiesEventBusArn}}"
35+
Fn::Sub: "{{resolve:ssm:/uni-prop/${Stage}/UnicornApprovalsEventBusArn}}"
3636
RoleArn:
3737
Fn::GetAtt: [ UnicornPropertiesSubscriptionRole, Arn ]
3838

@@ -55,13 +55,13 @@ Resources:
5555
Targets:
5656
- Id: SendEventTo
5757
Arn:
58-
Fn::Sub: "{{resolve:ssm:/uni-prop/${Stage}/UnicornPropertiesEventBusArn}}"
58+
Fn::Sub: "{{resolve:ssm:/uni-prop/${Stage}/UnicornApprovalsEventBusArn}}"
5959
RoleArn:
6060
Fn::GetAtt: [ UnicornPropertiesSubscriptionRole, Arn ]
6161

6262

6363
# This IAM role allows EventBridge to assume the permissions necessary to send events
64-
# from the publishing event bus, to the subscribing event bus (UnicornPropertiesEventBusArn)
64+
# from the publishing event bus, to the subscribing event bus (UnicornApprovalsEventBusArn)
6565
UnicornPropertiesSubscriptionRole:
6666
Type: AWS::IAM::Role
6767
DeletionPolicy: Delete
@@ -81,7 +81,7 @@ Resources:
8181
- Effect: Allow
8282
Action: events:PutEvents
8383
Resource:
84-
Fn::Sub: "{{resolve:ssm:/uni-prop/${Stage}/UnicornPropertiesEventBusArn}}"
84+
Fn::Sub: "{{resolve:ssm:/uni-prop/${Stage}/UnicornApprovalsEventBusArn}}"
8585

8686
Outputs:
8787
ContractStatusChangedSubscription:

0 commit comments

Comments
 (0)