Skip to content

Commit 8ee4427

Browse files
chore: update analytics metadata blueprints
1 parent e1764f4 commit 8ee4427

File tree

295 files changed

+1619
-26
lines changed

Some content is hidden

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

295 files changed

+1619
-26
lines changed

packages/@aws-cdk/aws-amplify-alpha/lib/app.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { Branch, BranchOptions } from './branch';
88
import { Domain, DomainOptions } from './domain';
99
import { renderEnvironmentVariables } from './utils';
1010
import { addConstructMetadata, MethodMetadata } from 'aws-cdk-lib/core/lib/metadata-resource';
11+
import { propertyInjectable } from 'aws-cdk-lib/core/lib/prop-injectable';
1112

1213
/**
1314
* An Amplify Console application
@@ -180,7 +181,11 @@ export interface AppProps {
180181
/**
181182
* An Amplify Console application
182183
*/
184+
@propertyInjectable
183185
export class App extends Resource implements IApp, iam.IGrantable {
186+
/** Uniquely identifies this class. */
187+
public static readonly PROPERTY_INJECTION_ID: string = '@aws-cdk.aws-amplify-alpha.App';
188+
184189
/**
185190
* Import an existing application
186191
*/

packages/@aws-cdk/aws-amplify-alpha/lib/branch.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import { BasicAuth } from './basic-auth';
1818
import { renderEnvironmentVariables } from './utils';
1919
import { AssetDeploymentIsCompleteFunction, AssetDeploymentOnEventFunction } from '../custom-resource-handlers/dist/aws-amplify-alpha/asset-deployment-provider.generated';
2020
import { addConstructMetadata, MethodMetadata } from 'aws-cdk-lib/core/lib/metadata-resource';
21+
import { propertyInjectable } from 'aws-cdk-lib/core/lib/prop-injectable';
2122

2223
/**
2324
* A branch
@@ -139,7 +140,11 @@ export interface BranchProps extends BranchOptions {
139140
/**
140141
* An Amplify Console branch
141142
*/
143+
@propertyInjectable
142144
export class Branch extends Resource implements IBranch {
145+
/** Uniquely identifies this class. */
146+
public static readonly PROPERTY_INJECTION_ID: string = '@aws-cdk.aws-amplify-alpha.Branch';
147+
143148
/**
144149
* Import an existing branch
145150
*/

packages/@aws-cdk/aws-amplify-alpha/lib/domain.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { CfnDomain } from 'aws-cdk-lib/aws-amplify';
66
import { IApp } from './app';
77
import { IBranch } from './branch';
88
import { addConstructMetadata, MethodMetadata } from 'aws-cdk-lib/core/lib/metadata-resource';
9+
import { propertyInjectable } from 'aws-cdk-lib/core/lib/prop-injectable';
910

1011
/**
1112
* Options to add a domain to an application
@@ -66,7 +67,10 @@ export interface DomainProps extends DomainOptions {
6667
/**
6768
* An Amplify Console domain
6869
*/
70+
@propertyInjectable
6971
export class Domain extends Resource {
72+
/** Uniquely identifies this class. */
73+
public static readonly PROPERTY_INJECTION_ID: string = '@aws-cdk.aws-amplify-alpha.Domain';
7074
/**
7175
* The ARN of the domain
7276
*

packages/@aws-cdk/aws-apprunner-alpha/lib/auto-scaling-configuration.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import * as cdk from 'aws-cdk-lib/core';
22
import { Construct } from 'constructs';
33
import { CfnAutoScalingConfiguration } from 'aws-cdk-lib/aws-apprunner';
44
import { addConstructMetadata } from 'aws-cdk-lib/core/lib/metadata-resource';
5+
import { propertyInjectable } from 'aws-cdk-lib/core/lib/prop-injectable';
56

67
/**
78
* Properties of the App Runner Auto Scaling Configuration.
@@ -89,7 +90,11 @@ export interface IAutoScalingConfiguration extends cdk.IResource {
8990
*
9091
* @resource AWS::AppRunner::AutoScalingConfiguration
9192
*/
93+
@propertyInjectable
9294
export class AutoScalingConfiguration extends cdk.Resource implements IAutoScalingConfiguration {
95+
/** Uniquely identifies this class. */
96+
public static readonly PROPERTY_INJECTION_ID: string = '@aws-cdk.aws-apprunner-alpha.AutoScalingConfiguration';
97+
9398
/**
9499
* Imports an App Runner Auto Scaling Configuration from attributes
95100
*/

packages/@aws-cdk/aws-apprunner-alpha/lib/observability-configuration.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import * as cdk from 'aws-cdk-lib/core';
22
import { Construct } from 'constructs';
33
import { CfnObservabilityConfiguration } from 'aws-cdk-lib/aws-apprunner';
44
import { addConstructMetadata } from 'aws-cdk-lib/core/lib/metadata-resource';
5+
import { propertyInjectable } from 'aws-cdk-lib/core/lib/prop-injectable';
56

67
/**
78
* The implementation provider chosen for tracing App Runner services
@@ -75,7 +76,11 @@ export interface IObservabilityConfiguration extends cdk.IResource {
7576
*
7677
* @resource AWS::AppRunner::ObservabilityConfiguration
7778
*/
79+
@propertyInjectable
7880
export class ObservabilityConfiguration extends cdk.Resource implements IObservabilityConfiguration {
81+
/** Uniquely identifies this class. */
82+
public static readonly PROPERTY_INJECTION_ID: string = '@aws-cdk.aws-apprunner-alpha.ObservabilityConfiguration';
83+
7984
/**
8085
* Imports an App Runner Observability Configuration from attributes.
8186
*/

packages/@aws-cdk/aws-apprunner-alpha/lib/service.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { IVpcConnector } from './vpc-connector';
1212
import { IAutoScalingConfiguration } from './auto-scaling-configuration';
1313
import { IObservabilityConfiguration } from './observability-configuration';
1414
import { addConstructMetadata, MethodMetadata } from 'aws-cdk-lib/core/lib/metadata-resource';
15+
import { propertyInjectable } from 'aws-cdk-lib/core/lib/prop-injectable';
1516

1617
/**
1718
* The image repository types
@@ -1179,7 +1180,11 @@ export abstract class Secret {
11791180
/**
11801181
* The App Runner Service.
11811182
*/
1183+
@propertyInjectable
11821184
export class Service extends cdk.Resource implements IService, iam.IGrantable {
1185+
/** Uniquely identifies this class. */
1186+
public static readonly PROPERTY_INJECTION_ID: string = '@aws-cdk.aws-apprunner-alpha.Service';
1187+
11831188
/**
11841189
* Import from service name.
11851190
*/

packages/@aws-cdk/aws-apprunner-alpha/lib/vpc-connector.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import * as cdk from 'aws-cdk-lib/core';
44
import { Construct } from 'constructs';
55
import { CfnVpcConnector } from 'aws-cdk-lib/aws-apprunner';
66
import { addConstructMetadata } from 'aws-cdk-lib/core/lib/metadata-resource';
7+
import { propertyInjectable } from 'aws-cdk-lib/core/lib/prop-injectable';
78

89
/**
910
* Properties of the AppRunner VPC Connector
@@ -89,7 +90,11 @@ export interface IVpcConnector extends cdk.IResource, ec2.IConnectable {
8990
*
9091
* @resource AWS::AppRunner::VpcConnector
9192
*/
93+
@propertyInjectable
9294
export class VpcConnector extends cdk.Resource implements IVpcConnector {
95+
/** Uniquely identifies this class. */
96+
public static readonly PROPERTY_INJECTION_ID: string = '@aws-cdk.aws-apprunner-alpha.VpcConnector';
97+
9398
/**
9499
* Import from VPC connector attributes.
95100
*/

packages/@aws-cdk/aws-apprunner-alpha/lib/vpc-ingress-connection.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Construct } from 'constructs';
44
import { IService } from './service';
55
import { CfnVpcIngressConnection } from 'aws-cdk-lib/aws-apprunner';
66
import { addConstructMetadata } from 'aws-cdk-lib/core/lib/metadata-resource';
7+
import { propertyInjectable } from 'aws-cdk-lib/core/lib/prop-injectable';
78

89
/**
910
* Properties of the AppRunner VPC Ingress Connection
@@ -79,7 +80,11 @@ export interface IVpcIngressConnection extends cdk.IResource {
7980
*
8081
* @resource AWS::AppRunner::VpcIngressConnection
8182
*/
83+
@propertyInjectable
8284
export class VpcIngressConnection extends cdk.Resource implements IVpcIngressConnection {
85+
/** Uniquely identifies this class. */
86+
public static readonly PROPERTY_INJECTION_ID: string = '@aws-cdk.aws-apprunner-alpha.VpcIngressConnection';
87+
8388
/**
8489
* Import from VPC Ingress Connection from attributes.
8590
*/

packages/@aws-cdk/aws-cloud9-alpha/lib/environment.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import * as cdk from 'aws-cdk-lib/core';
55
import { Construct } from 'constructs';
66
import { CfnEnvironmentEC2 } from 'aws-cdk-lib/aws-cloud9';
77
import { addConstructMetadata } from 'aws-cdk-lib/core/lib/metadata-resource';
8+
import { propertyInjectable } from 'aws-cdk-lib/core/lib/prop-injectable';
89

910
/**
1011
* A Cloud9 Environment
@@ -151,7 +152,11 @@ export interface Ec2EnvironmentProps {
151152
* A Cloud9 Environment with Amazon EC2
152153
* @resource AWS::Cloud9::EnvironmentEC2
153154
*/
155+
@propertyInjectable
154156
export class Ec2Environment extends cdk.Resource implements IEc2Environment {
157+
/** Uniquely identifies this class. */
158+
public static readonly PROPERTY_INJECTION_ID: string = '@aws-cdk.aws-cloud9-alpha.Ec2Environment';
159+
155160
/**
156161
* import from EnvironmentEc2Name
157162
*/

packages/@aws-cdk/aws-codestar-alpha/lib/github-repository.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import * as cdk from 'aws-cdk-lib/core';
33
import { Construct } from 'constructs';
44
import * as codestar from 'aws-cdk-lib/aws-codestar';
55
import { addConstructMetadata } from 'aws-cdk-lib/core/lib/metadata-resource';
6+
import { propertyInjectable } from 'aws-cdk-lib/core/lib/prop-injectable';
67

78
/**
89
* GitHubRepository resource interface
@@ -84,7 +85,10 @@ export interface GitHubRepositoryProps {
8485
/**
8586
* The GitHubRepository resource
8687
*/
88+
@propertyInjectable
8789
export class GitHubRepository extends cdk.Resource implements IGitHubRepository {
90+
/** Uniquely identifies this class. */
91+
public static readonly PROPERTY_INJECTION_ID: string = '@aws-cdk.aws-codestar-alpha.GitHubRepository';
8892
public readonly owner: string;
8993
public readonly repo: string;
9094

packages/@aws-cdk/aws-ec2-alpha/lib/ipam.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { CfnIPAM, CfnIPAMPool, CfnIPAMPoolCidr, CfnIPAMScope } from 'aws-cdk-lib
22
import { Construct } from 'constructs';
33
import { Lazy, Names, Resource, Stack, Tags } from 'aws-cdk-lib';
44
import { addConstructMetadata, MethodMetadata } from 'aws-cdk-lib/core/lib/metadata-resource';
5+
import { propertyInjectable } from 'aws-cdk-lib/core/lib/prop-injectable';
56

67
/**
78
* Represents the address family for IP addresses in an IPAM pool.
@@ -311,7 +312,10 @@ export interface IIpamScopeBase {
311312
* @resource AWS::EC2::IPAMPool
312313
* @internal
313314
*/
315+
@propertyInjectable
314316
class IpamPool extends Resource implements IIpamPool {
317+
/** Uniquely identifies this class. */
318+
public static readonly PROPERTY_INJECTION_ID: string = '@aws-cdk.aws-ec2-alpha.IpamPool';
315319
/**
316320
* Pool ID to be passed to the VPC construct
317321
* @attribute IpamPoolId
@@ -390,7 +394,10 @@ class IpamPool extends Resource implements IIpamPool {
390394
* @see https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-ipamscope.html
391395
* @resource AWS::EC2::IPAMScope
392396
*/
397+
@propertyInjectable
393398
class IpamScope extends Resource implements IIpamScopeBase {
399+
/** Uniquely identifies this class. */
400+
public static readonly PROPERTY_INJECTION_ID: string = '@aws-cdk.aws-ec2-alpha.IpamScope';
394401
/**
395402
* Stores the reference to newly created Resource
396403
*/
@@ -472,7 +479,10 @@ class IpamScopeBase implements IIpamScopeBase {
472479
* @see https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-ipamscope.html
473480
* @resource AWS::EC2::IPAM
474481
*/
482+
@propertyInjectable
475483
export class Ipam extends Resource {
484+
/** Uniquely identifies this class. */
485+
public static readonly PROPERTY_INJECTION_ID: string = '@aws-cdk.aws-ec2-alpha.Ipam';
476486
/**
477487
* Provides access to default public IPAM scope through add pool method.
478488
* Usage: To add an Ipam Pool to a default public scope

packages/@aws-cdk/aws-ec2-alpha/lib/route.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { NetworkUtils, allRouteTableIds, CidrBlock } from './util';
66
import { ISubnetV2 } from './subnet-v2';
77
import { addConstructMetadata, MethodMetadata } from 'aws-cdk-lib/core/lib/metadata-resource';
88
import { cx_api } from 'aws-cdk-lib';
9+
import { propertyInjectable } from 'aws-cdk-lib/core/lib/prop-injectable';
910

1011
/**
1112
* Indicates whether the NAT gateway supports public or private connectivity.
@@ -220,7 +221,10 @@ const NAME_TAG: string = 'Name';
220221
* Creates an egress-only internet gateway
221222
* @resource AWS::EC2::EgressOnlyInternetGateway
222223
*/
224+
@propertyInjectable
223225
export class EgressOnlyInternetGateway extends Resource implements IRouteTarget {
226+
/** Uniquely identifies this class. */
227+
public static readonly PROPERTY_INJECTION_ID: string = '@aws-cdk.aws-ec2-alpha.EgressOnlyInternetGateway';
224228
/**
225229
* The type of router used in the route.
226230
*/
@@ -259,7 +263,10 @@ export class EgressOnlyInternetGateway extends Resource implements IRouteTarget
259263
* Creates an internet gateway
260264
* @resource AWS::EC2::InternetGateway
261265
*/
266+
@propertyInjectable
262267
export class InternetGateway extends Resource implements IRouteTarget {
268+
/** Uniquely identifies this class. */
269+
public static readonly PROPERTY_INJECTION_ID: string = '@aws-cdk.aws-ec2-alpha.InternetGateway';
263270
/**
264271
* The type of router used in the route.
265272
*/
@@ -313,7 +320,10 @@ export class InternetGateway extends Resource implements IRouteTarget {
313320
* Creates a virtual private gateway
314321
* @resource AWS::EC2::VPNGateway
315322
*/
323+
@propertyInjectable
316324
export class VPNGatewayV2 extends Resource implements IRouteTarget {
325+
/** Uniquely identifies this class. */
326+
public static readonly PROPERTY_INJECTION_ID: string = '@aws-cdk.aws-ec2-alpha.VPNGatewayV2';
317327
/**
318328
* The type of router used in the route.
319329
*/
@@ -395,7 +405,10 @@ export class VPNGatewayV2 extends Resource implements IRouteTarget {
395405
* Creates a network address translation (NAT) gateway
396406
* @resource AWS::EC2::NatGateway
397407
*/
408+
@propertyInjectable
398409
export class NatGateway extends Resource implements IRouteTarget {
410+
/** Uniquely identifies this class. */
411+
public static readonly PROPERTY_INJECTION_ID: string = '@aws-cdk.aws-ec2-alpha.NatGateway';
399412
/**
400413
* Id of the NatGateway
401414
* @attribute
@@ -492,7 +505,10 @@ export class NatGateway extends Resource implements IRouteTarget {
492505
* Creates a peering connection between two VPCs
493506
* @resource AWS::EC2::VPCPeeringConnection
494507
*/
508+
@propertyInjectable
495509
export class VPCPeeringConnection extends Resource implements IRouteTarget {
510+
/** Uniquely identifies this class. */
511+
public static readonly PROPERTY_INJECTION_ID: string = '@aws-cdk.aws-ec2-alpha.VPCPeeringConnection';
496512
/**
497513
* The type of router used in the route.
498514
*/
@@ -693,7 +709,10 @@ export interface RouteProps {
693709
* Creates a new route with added functionality.
694710
* @resource AWS::EC2::Route
695711
*/
712+
@propertyInjectable
696713
export class Route extends Resource implements IRouteV2 {
714+
/** Uniquely identifies this class. */
715+
public static readonly PROPERTY_INJECTION_ID: string = '@aws-cdk.aws-ec2-alpha.Route';
697716
/**
698717
* The IPv4 or IPv6 CIDR block used for the destination match.
699718
*
@@ -799,7 +818,10 @@ export interface RouteTableProps {
799818
* Creates a route table for the specified VPC
800819
* @resource AWS::EC2::RouteTable
801820
*/
821+
@propertyInjectable
802822
export class RouteTable extends Resource implements IRouteTable {
823+
/** Uniquely identifies this class. */
824+
public static readonly PROPERTY_INJECTION_ID: string = '@aws-cdk.aws-ec2-alpha.RouteTable';
803825
/**
804826
* The ID of the route table.
805827
*/

packages/@aws-cdk/aws-ec2-alpha/lib/subnet-v2.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { IVpcV2 } from './vpc-v2-base';
55
import { CidrBlock, CidrBlockIpv6, defaultSubnetName } from './util';
66
import { RouteTable } from './route';
77
import { addConstructMetadata, MethodMetadata } from 'aws-cdk-lib/core/lib/metadata-resource';
8+
import { propertyInjectable } from 'aws-cdk-lib/core/lib/prop-injectable';
89

910
/**
1011
* Interface to define subnet CIDR
@@ -143,7 +144,11 @@ export interface ISubnetV2 extends ISubnet {
143144
* @resource AWS::EC2::Subnet
144145
*
145146
*/
147+
@propertyInjectable
146148
export class SubnetV2 extends Resource implements ISubnetV2 {
149+
/** Uniquely identifies this class. */
150+
public static readonly PROPERTY_INJECTION_ID: string = '@aws-cdk.aws-ec2-alpha.SubnetV2';
151+
147152
/**
148153
* Import an existing subnet to the VPC
149154
*/

packages/@aws-cdk/aws-ec2-alpha/lib/transit-gateway-route-table-association.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { CfnTransitGatewayRouteTableAssociation } from 'aws-cdk-lib/aws-ec2';
44
import { Construct } from 'constructs';
55
import { ITransitGatewayAssociation, TransitGatewayAssociationBase } from './transit-gateway-association';
66
import { addConstructMetadata } from 'aws-cdk-lib/core/lib/metadata-resource';
7+
import { propertyInjectable } from 'aws-cdk-lib/core/lib/prop-injectable';
78

89
/**
910
* Represents a Transit Gateway Route Table Association.
@@ -37,7 +38,10 @@ export interface TransitGatewayRouteTableAssociationProps {
3738
*
3839
* @resource AWS::EC2::TransitGatewayRouteTableAssociation
3940
*/
41+
@propertyInjectable
4042
export class TransitGatewayRouteTableAssociation extends TransitGatewayAssociationBase {
43+
/** Uniquely identifies this class. */
44+
public static readonly PROPERTY_INJECTION_ID: string = '@aws-cdk.aws-ec2-alpha.TransitGatewayRouteTableAssociation';
4145
/**
4246
* The ID of the transit gateway route table association.
4347
*/

packages/@aws-cdk/aws-ec2-alpha/lib/transit-gateway-route-table-propagation.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Construct } from 'constructs';
44
import { ITransitGatewayAttachment } from './transit-gateway-attachment';
55
import { ITransitGatewayRouteTable } from './transit-gateway-route-table';
66
import { addConstructMetadata } from 'aws-cdk-lib/core/lib/metadata-resource';
7+
import { propertyInjectable } from 'aws-cdk-lib/core/lib/prop-injectable';
78

89
/**
910
* Represents a Transit Gateway Route Table Propagation.
@@ -43,7 +44,10 @@ export interface TransitGatewayRouteTablePropagationProps {
4344
*
4445
* @resource AWS::EC2::TransitGatewayRouteTablePropagation
4546
*/
47+
@propertyInjectable
4648
export class TransitGatewayRouteTablePropagation extends Resource implements ITransitGatewayRouteTablePropagation {
49+
/** Uniquely identifies this class. */
50+
public static readonly PROPERTY_INJECTION_ID: string = '@aws-cdk.aws-ec2-alpha.TransitGatewayRouteTablePropagation';
4751
/**
4852
* The ID of the transit gateway route table propagation.
4953
*/

0 commit comments

Comments
 (0)