@pulumi/aws 4.31.0 → 4.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/acm/getCertificate.d.ts +2 -2
- package/alb/loadBalancer.d.ts +2 -2
- package/alb/loadBalancer.js +2 -2
- package/alb/targetGroup.d.ts +3 -3
- package/appconfig/application.d.ts +5 -5
- package/appconfig/configurationProfile.d.ts +5 -5
- package/appconfig/deployment.d.ts +5 -5
- package/appconfig/deploymentStrategy.d.ts +5 -5
- package/appconfig/environment.d.ts +5 -5
- package/applicationloadbalancing/loadBalancer.d.ts +2 -2
- package/applicationloadbalancing/loadBalancer.js +2 -2
- package/applicationloadbalancing/targetGroup.d.ts +3 -3
- package/appstream/fleet.d.ts +1 -1
- package/appstream/fleet.js +1 -1
- package/appstream/imageBuilder.d.ts +5 -5
- package/appsync/graphQLApi.d.ts +55 -24
- package/appsync/graphQLApi.js +42 -21
- package/appsync/graphQLApi.js.map +1 -1
- package/autoscaling/getAmiIds.d.ts +4 -4
- package/autoscaling/getAmiIds.js +4 -4
- package/backup/regionSettings.d.ts +25 -0
- package/backup/regionSettings.js +9 -0
- package/backup/regionSettings.js.map +1 -1
- package/cfg/organizationConformancePack.d.ts +1 -1
- package/cfg/organizationConformancePack.js +1 -1
- package/chime/voiceConnectorTerminationCredentials.d.ts +1 -1
- package/chime/voiceConnectorTerminationCredentials.js +1 -1
- package/cloudcontrol/getResource.d.ts +3 -0
- package/cloudcontrol/getResource.js.map +1 -1
- package/cloudcontrol/resource.d.ts +3 -3
- package/cloudfront/getOriginRequestPolicy.d.ts +1 -1
- package/cloudfront/originRequestPolicy.d.ts +3 -3
- package/cloudwatch/eventTarget.d.ts +4 -0
- package/cloudwatch/eventTarget.js +4 -0
- package/cloudwatch/eventTarget.js.map +1 -1
- package/codecommit/approvalRuleTemplateAssociation.d.ts +83 -0
- package/codecommit/approvalRuleTemplateAssociation.js +82 -0
- package/codecommit/approvalRuleTemplateAssociation.js.map +1 -0
- package/codecommit/index.d.ts +1 -0
- package/codecommit/index.js +5 -0
- package/codecommit/index.js.map +1 -1
- package/connect/botAssociation.d.ts +136 -0
- package/connect/botAssociation.js +134 -0
- package/connect/botAssociation.js.map +1 -0
- package/connect/contactFlow.d.ts +5 -5
- package/connect/getBotAssociation.d.ts +59 -0
- package/connect/getBotAssociation.js +43 -0
- package/connect/getBotAssociation.js.map +1 -0
- package/connect/getHoursOfOperation.d.ts +122 -0
- package/connect/getHoursOfOperation.js +56 -0
- package/connect/getHoursOfOperation.js.map +1 -0
- package/connect/getLambdaFunctionAssociation.d.ts +55 -0
- package/connect/getLambdaFunctionAssociation.js +40 -0
- package/connect/getLambdaFunctionAssociation.js.map +1 -0
- package/connect/hoursOfOperation.d.ts +201 -0
- package/connect/hoursOfOperation.js +128 -0
- package/connect/hoursOfOperation.js.map +1 -0
- package/connect/index.d.ts +6 -0
- package/connect/index.js +18 -0
- package/connect/index.js.map +1 -1
- package/connect/lambdaFunctionAssociation.d.ts +84 -0
- package/connect/lambdaFunctionAssociation.js +83 -0
- package/connect/lambdaFunctionAssociation.js.map +1 -0
- package/detective/graph.d.ts +103 -0
- package/detective/graph.js +81 -0
- package/detective/graph.js.map +1 -0
- package/detective/index.d.ts +1 -0
- package/detective/index.js +33 -0
- package/detective/index.js.map +1 -0
- package/dms/endpoint.d.ts +24 -0
- package/dms/endpoint.js +4 -0
- package/dms/endpoint.js.map +1 -1
- package/dms/replicationInstance.d.ts +3 -3
- package/docdb/cluster.d.ts +3 -3
- package/dynamodb/getTable.d.ts +1 -0
- package/dynamodb/getTable.js.map +1 -1
- package/dynamodb/table.d.ts +60 -12
- package/dynamodb/table.js +8 -6
- package/dynamodb/table.js.map +1 -1
- package/ebs/snapshot.d.ts +3 -3
- package/ebs/snapshotCopy.d.ts +3 -3
- package/ebs/volume.d.ts +9 -0
- package/ebs/volume.js.map +1 -1
- package/ec2/capacityReservation.d.ts +9 -0
- package/ec2/capacityReservation.js.map +1 -1
- package/ec2/carrierGateway.d.ts +9 -0
- package/ec2/carrierGateway.js.map +1 -1
- package/ec2/dedicatedHost.d.ts +9 -0
- package/ec2/dedicatedHost.js.map +1 -1
- package/ec2/egressOnlyInternetGateway.d.ts +9 -0
- package/ec2/egressOnlyInternetGateway.js.map +1 -1
- package/ec2/eip.d.ts +9 -0
- package/ec2/eip.js.map +1 -1
- package/ec2/fleet.d.ts +9 -0
- package/ec2/fleet.js.map +1 -1
- package/ec2/index.d.ts +1 -0
- package/ec2/index.js +5 -0
- package/ec2/index.js.map +1 -1
- package/ec2/keyPair.d.ts +9 -0
- package/ec2/keyPair.js.map +1 -1
- package/ec2/localGatewayRouteTableVpcAssociation.d.ts +9 -0
- package/ec2/localGatewayRouteTableVpcAssociation.js.map +1 -1
- package/ec2/managedPrefixList.d.ts +9 -0
- package/ec2/managedPrefixList.js.map +1 -1
- package/ec2/subnetCidrReservation.d.ts +116 -0
- package/ec2/subnetCidrReservation.js +92 -0
- package/ec2/subnetCidrReservation.js.map +1 -0
- package/ec2/trafficMirrorFilter.d.ts +9 -0
- package/ec2/trafficMirrorFilter.js.map +1 -1
- package/ec2/trafficMirrorSession.d.ts +9 -0
- package/ec2/trafficMirrorSession.js.map +1 -1
- package/ec2/trafficMirrorTarget.d.ts +9 -0
- package/ec2/trafficMirrorTarget.js.map +1 -1
- package/ec2/transitGatewayPeeringAttachmentAccepter.d.ts +9 -0
- package/ec2/transitGatewayPeeringAttachmentAccepter.js.map +1 -1
- package/ec2/vpc.d.ts +28 -16
- package/ec2/vpc.js +1 -1
- package/ec2/vpc.js.map +1 -1
- package/ec2/vpcIpam.d.ts +5 -5
- package/ec2/vpcIpamPool.d.ts +9 -9
- package/ec2/vpcIpamPool.js +1 -1
- package/ec2/vpcIpv6CidrBlockAssociation.d.ts +10 -2
- package/ec2/vpcIpv6CidrBlockAssociation.js +1 -2
- package/ec2/vpcIpv6CidrBlockAssociation.js.map +1 -1
- package/ec2/vpcPeeringConnection.d.ts +0 -6
- package/ec2/vpcPeeringConnection.js +1 -1
- package/ec2/vpcPeeringConnection.js.map +1 -1
- package/ec2/vpcPeeringConnectionAccepter.d.ts +0 -6
- package/ec2/vpcPeeringConnectionAccepter.js +1 -1
- package/ec2/vpcPeeringConnectionAccepter.js.map +1 -1
- package/ec2clientvpn/endpoint.d.ts +9 -0
- package/ec2clientvpn/endpoint.js.map +1 -1
- package/ec2transitgateway/peeringAttachment.d.ts +9 -0
- package/ec2transitgateway/peeringAttachment.js.map +1 -1
- package/ec2transitgateway/routeTable.d.ts +9 -0
- package/ec2transitgateway/routeTable.js.map +1 -1
- package/ec2transitgateway/transitGateway.d.ts +9 -0
- package/ec2transitgateway/transitGateway.js.map +1 -1
- package/ec2transitgateway/vpcAttachment.d.ts +9 -0
- package/ec2transitgateway/vpcAttachment.js.map +1 -1
- package/ec2transitgateway/vpcAttachmentAccepter.d.ts +9 -0
- package/ec2transitgateway/vpcAttachmentAccepter.js.map +1 -1
- package/ecr/index.d.ts +2 -0
- package/ecr/index.js +10 -0
- package/ecr/index.js.map +1 -1
- package/ecr/pullThroughCacheRule.d.ts +94 -0
- package/ecr/pullThroughCacheRule.js +87 -0
- package/ecr/pullThroughCacheRule.js.map +1 -0
- package/ecr/registryScanningConfiguration.d.ts +125 -0
- package/ecr/registryScanningConfiguration.js +114 -0
- package/ecr/registryScanningConfiguration.js.map +1 -0
- package/ecr/repository.d.ts +9 -0
- package/ecr/repository.js.map +1 -1
- package/ecrpublic/index.d.ts +1 -0
- package/ecrpublic/index.js +5 -0
- package/ecrpublic/index.js.map +1 -1
- package/ecrpublic/repositoryPolicy.d.ts +113 -0
- package/ecrpublic/repositoryPolicy.js +115 -0
- package/ecrpublic/repositoryPolicy.js.map +1 -0
- package/ecs/accountSettingDefault.d.ts +17 -0
- package/ecs/accountSettingDefault.js +17 -0
- package/ecs/accountSettingDefault.js.map +1 -1
- package/ecs/capacityProvider.d.ts +9 -0
- package/ecs/capacityProvider.js.map +1 -1
- package/ecs/cluster.d.ts +9 -0
- package/ecs/cluster.js.map +1 -1
- package/ecs/index.d.ts +1 -0
- package/ecs/index.js +5 -0
- package/ecs/index.js.map +1 -1
- package/ecs/taskDefinition.d.ts +58 -18
- package/ecs/taskDefinition.js +48 -18
- package/ecs/taskDefinition.js.map +1 -1
- package/ecs/taskSet.d.ts +264 -0
- package/ecs/taskSet.js +107 -0
- package/ecs/taskSet.js.map +1 -0
- package/efs/accessPoint.d.ts +9 -0
- package/efs/accessPoint.js.map +1 -1
- package/efs/fileSystem.d.ts +9 -0
- package/efs/fileSystem.js.map +1 -1
- package/eks/fargateProfile.d.ts +9 -0
- package/eks/fargateProfile.js.map +1 -1
- package/eks/identityProviderConfig.d.ts +9 -0
- package/eks/identityProviderConfig.js.map +1 -1
- package/elasticache/cluster.d.ts +9 -0
- package/elasticache/cluster.js.map +1 -1
- package/elasticache/replicationGroup.d.ts +21 -0
- package/elasticache/replicationGroup.js +2 -0
- package/elasticache/replicationGroup.js.map +1 -1
- package/elasticbeanstalk/application.d.ts +9 -0
- package/elasticbeanstalk/application.js.map +1 -1
- package/elasticbeanstalk/applicationVersion.d.ts +9 -0
- package/elasticbeanstalk/applicationVersion.js.map +1 -1
- package/elasticbeanstalk/environment.d.ts +9 -0
- package/elasticbeanstalk/environment.js.map +1 -1
- package/elasticloadbalancing/loadBalancer.d.ts +9 -0
- package/elasticloadbalancing/loadBalancer.js.map +1 -1
- package/elasticloadbalancingv2/loadBalancer.d.ts +2 -2
- package/elasticloadbalancingv2/loadBalancer.js +2 -2
- package/elasticloadbalancingv2/targetGroup.d.ts +3 -3
- package/elasticsearch/domain.d.ts +12 -0
- package/elasticsearch/domain.js +2 -0
- package/elasticsearch/domain.js.map +1 -1
- package/elasticsearch/getDomain.d.ts +4 -0
- package/elasticsearch/getDomain.js.map +1 -1
- package/elb/loadBalancer.d.ts +9 -0
- package/elb/loadBalancer.js.map +1 -1
- package/emr/cluster.d.ts +2 -2
- package/emr/index.d.ts +2 -0
- package/emr/index.js +10 -0
- package/emr/index.js.map +1 -1
- package/emr/studio.d.ts +246 -0
- package/emr/studio.js +131 -0
- package/emr/studio.js.map +1 -0
- package/emr/studioSessionMapping.d.ts +121 -0
- package/emr/studioSessionMapping.js +93 -0
- package/emr/studioSessionMapping.js.map +1 -0
- package/fsx/backup.d.ts +55 -12
- package/fsx/backup.js +34 -4
- package/fsx/backup.js.map +1 -1
- package/fsx/ontapFileSystem.d.ts +5 -5
- package/fsx/ontapStorageVirtualMachine.d.ts +5 -5
- package/fsx/ontapVolume.d.ts +5 -5
- package/getAutoscalingGroups.d.ts +4 -4
- package/getAutoscalingGroups.js +4 -4
- package/glue/connection.d.ts +5 -5
- package/iam/role.d.ts +6 -6
- package/iam/serviceLinkedRole.d.ts +36 -0
- package/iam/serviceLinkedRole.js +4 -0
- package/iam/serviceLinkedRole.js.map +1 -1
- package/index.d.ts +2 -1
- package/index.js +5 -3
- package/index.js.map +1 -1
- package/iot/thingType.d.ts +5 -5
- package/kinesis/analyticsApplication.d.ts +9 -0
- package/kinesis/analyticsApplication.js.map +1 -1
- package/kinesis/firehoseDeliveryStream.d.ts +9 -0
- package/kinesis/firehoseDeliveryStream.js.map +1 -1
- package/kinesis/getStream.d.ts +5 -0
- package/kinesis/getStream.js.map +1 -1
- package/kinesis/stream.d.ts +31 -6
- package/kinesis/stream.js +5 -3
- package/kinesis/stream.js.map +1 -1
- package/kinesis/videoStream.d.ts +9 -0
- package/kinesis/videoStream.js.map +1 -1
- package/kinesisanalyticsv2/application.d.ts +9 -0
- package/kinesisanalyticsv2/application.js.map +1 -1
- package/kms/key.d.ts +9 -0
- package/kms/key.js.map +1 -1
- package/kms/replicaExternalKey.d.ts +9 -0
- package/kms/replicaExternalKey.js.map +1 -1
- package/kms/replicaKey.d.ts +9 -0
- package/kms/replicaKey.js.map +1 -1
- package/lambda/eventSourceMapping.d.ts +40 -0
- package/lambda/eventSourceMapping.js +30 -0
- package/lambda/eventSourceMapping.js.map +1 -1
- package/lb/loadBalancer.d.ts +2 -2
- package/lb/loadBalancer.js +2 -2
- package/lb/targetGroup.d.ts +3 -3
- package/lightsail/instance.d.ts +38 -2
- package/lightsail/instance.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +1 -1
- package/quicksight/dataSource.d.ts +5 -5
- package/quicksight/user.d.ts +4 -3
- package/quicksight/user.js +1 -0
- package/quicksight/user.js.map +1 -1
- package/route53/hostedZoneDnsSec.d.ts +2 -0
- package/route53/hostedZoneDnsSec.js +2 -0
- package/route53/hostedZoneDnsSec.js.map +1 -1
- package/route53recoveryreadiness/cell.d.ts +5 -5
- package/route53recoveryreadiness/readinessCheck.d.ts +5 -5
- package/route53recoveryreadiness/recoveryGroup.d.ts +5 -5
- package/route53recoveryreadiness/resourceSet.d.ts +5 -5
- package/s3/accessPoint.d.ts +45 -13
- package/s3/accessPoint.js +32 -0
- package/s3/accessPoint.js.map +1 -1
- package/s3/accountPublicAccessBlock.d.ts +3 -3
- package/s3/bucket.d.ts +1 -1
- package/s3/bucket.js +1 -1
- package/s3/bucketObject.d.ts +5 -5
- package/s3/bucketPolicy.d.ts +22 -24
- package/s3/bucketPolicy.js +19 -21
- package/s3/bucketPolicy.js.map +1 -1
- package/s3/bucketReplicationConfig.d.ts +2 -2
- package/s3/bucketReplicationConfig.js +2 -2
- package/s3/objectCopy.d.ts +3 -6
- package/s3/objectCopy.js.map +1 -1
- package/s3control/multiRegionAccessPoint.d.ts +9 -0
- package/s3control/multiRegionAccessPoint.js.map +1 -1
- package/sagemaker/appImageConfig.d.ts +5 -5
- package/sagemaker/codeRepository.d.ts +5 -5
- package/sagemaker/deviceFleet.d.ts +5 -5
- package/sagemaker/endpoint.d.ts +3 -3
- package/sagemaker/flowDefinition.d.ts +5 -5
- package/sagemaker/humanTaskUI.d.ts +5 -5
- package/sagemaker/studioLifecycleConfig.d.ts +5 -5
- package/sagemaker/workteam.d.ts +5 -5
- package/schemas/discoverer.d.ts +9 -0
- package/schemas/discoverer.js.map +1 -1
- package/schemas/registry.d.ts +9 -0
- package/schemas/registry.js.map +1 -1
- package/schemas/schema.d.ts +9 -0
- package/schemas/schema.js.map +1 -1
- package/secretsmanager/secret.d.ts +3 -3
- package/secretsmanager/secretPolicy.d.ts +3 -3
- package/securityhub/organizationConfiguration.d.ts +22 -0
- package/securityhub/organizationConfiguration.js +22 -0
- package/securityhub/organizationConfiguration.js.map +1 -1
- package/servicequotas/getServiceQuota.d.ts +6 -6
- package/shield/protectionGroup.d.ts +5 -5
- package/sns/topic.d.ts +4 -6
- package/sns/topic.js +4 -6
- package/sns/topic.js.map +1 -1
- package/sqs/queue.d.ts +25 -0
- package/sqs/queue.js +15 -0
- package/sqs/queue.js.map +1 -1
- package/storagegateway/fileSystemAssociation.d.ts +5 -5
- package/storagegateway/nfsFileShare.d.ts +3 -3
- package/storagegateway/smbFileShare.d.ts +3 -3
- package/timestreamwrite/database.d.ts +9 -0
- package/timestreamwrite/database.js.map +1 -1
- package/timestreamwrite/table.d.ts +9 -0
- package/timestreamwrite/table.js.map +1 -1
- package/transfer/server.d.ts +35 -3
- package/transfer/server.js +13 -0
- package/transfer/server.js.map +1 -1
- package/types/input.d.ts +307 -20
- package/types/output.d.ts +372 -17
- package/xray/group.d.ts +9 -0
- package/xray/group.js.map +1 -1
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides an Elastic Container Registry Public Repository Policy.
|
|
4
|
+
*
|
|
5
|
+
* Note that currently only one policy may be applied to a repository.
|
|
6
|
+
*
|
|
7
|
+
* > **NOTE:** This resource can only be used with `us-east-1` region.
|
|
8
|
+
*
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as aws from "@pulumi/aws";
|
|
14
|
+
*
|
|
15
|
+
* const exampleRepository = new aws.ecrpublic.Repository("exampleRepository", {repositoryName: "Example"});
|
|
16
|
+
* const exampleRepositoryPolicy = new aws.ecrpublic.RepositoryPolicy("exampleRepositoryPolicy", {
|
|
17
|
+
* repositoryName: exampleRepository.repositoryName,
|
|
18
|
+
* policy: `{
|
|
19
|
+
* "Version": "2008-10-17",
|
|
20
|
+
* "Statement": [
|
|
21
|
+
* {
|
|
22
|
+
* "Sid": "new policy",
|
|
23
|
+
* "Effect": "Allow",
|
|
24
|
+
* "Principal": "*",
|
|
25
|
+
* "Action": [
|
|
26
|
+
* "ecr:GetDownloadUrlForLayer",
|
|
27
|
+
* "ecr:BatchGetImage",
|
|
28
|
+
* "ecr:BatchCheckLayerAvailability",
|
|
29
|
+
* "ecr:PutImage",
|
|
30
|
+
* "ecr:InitiateLayerUpload",
|
|
31
|
+
* "ecr:UploadLayerPart",
|
|
32
|
+
* "ecr:CompleteLayerUpload",
|
|
33
|
+
* "ecr:DescribeRepositories",
|
|
34
|
+
* "ecr:GetRepositoryPolicy",
|
|
35
|
+
* "ecr:ListImages",
|
|
36
|
+
* "ecr:DeleteRepository",
|
|
37
|
+
* "ecr:BatchDeleteImage",
|
|
38
|
+
* "ecr:SetRepositoryPolicy",
|
|
39
|
+
* "ecr:DeleteRepositoryPolicy"
|
|
40
|
+
* ]
|
|
41
|
+
* }
|
|
42
|
+
* ]
|
|
43
|
+
* }
|
|
44
|
+
* `,
|
|
45
|
+
* });
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* ## Import
|
|
49
|
+
*
|
|
50
|
+
* ECR Public Repository Policy can be imported using the repository name, e.g.
|
|
51
|
+
*
|
|
52
|
+
* ```sh
|
|
53
|
+
* $ pulumi import aws:ecrpublic/repositoryPolicy:RepositoryPolicy example example
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
export declare class RepositoryPolicy extends pulumi.CustomResource {
|
|
57
|
+
/**
|
|
58
|
+
* Get an existing RepositoryPolicy resource's state with the given name, ID, and optional extra
|
|
59
|
+
* properties used to qualify the lookup.
|
|
60
|
+
*
|
|
61
|
+
* @param name The _unique_ name of the resulting resource.
|
|
62
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
63
|
+
* @param state Any extra arguments used during the lookup.
|
|
64
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
65
|
+
*/
|
|
66
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: RepositoryPolicyState, opts?: pulumi.CustomResourceOptions): RepositoryPolicy;
|
|
67
|
+
/**
|
|
68
|
+
* Returns true if the given object is an instance of RepositoryPolicy. This is designed to work even
|
|
69
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
70
|
+
*/
|
|
71
|
+
static isInstance(obj: any): obj is RepositoryPolicy;
|
|
72
|
+
readonly policy: pulumi.Output<string>;
|
|
73
|
+
/**
|
|
74
|
+
* The registry ID where the repository was created.
|
|
75
|
+
*/
|
|
76
|
+
readonly registryId: pulumi.Output<string>;
|
|
77
|
+
/**
|
|
78
|
+
* Name of the repository to apply the policy.
|
|
79
|
+
*/
|
|
80
|
+
readonly repositoryName: pulumi.Output<string>;
|
|
81
|
+
/**
|
|
82
|
+
* Create a RepositoryPolicy resource with the given unique name, arguments, and options.
|
|
83
|
+
*
|
|
84
|
+
* @param name The _unique_ name of the resource.
|
|
85
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
86
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
87
|
+
*/
|
|
88
|
+
constructor(name: string, args: RepositoryPolicyArgs, opts?: pulumi.CustomResourceOptions);
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Input properties used for looking up and filtering RepositoryPolicy resources.
|
|
92
|
+
*/
|
|
93
|
+
export interface RepositoryPolicyState {
|
|
94
|
+
policy?: pulumi.Input<string>;
|
|
95
|
+
/**
|
|
96
|
+
* The registry ID where the repository was created.
|
|
97
|
+
*/
|
|
98
|
+
registryId?: pulumi.Input<string>;
|
|
99
|
+
/**
|
|
100
|
+
* Name of the repository to apply the policy.
|
|
101
|
+
*/
|
|
102
|
+
repositoryName?: pulumi.Input<string>;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* The set of arguments for constructing a RepositoryPolicy resource.
|
|
106
|
+
*/
|
|
107
|
+
export interface RepositoryPolicyArgs {
|
|
108
|
+
policy: pulumi.Input<string>;
|
|
109
|
+
/**
|
|
110
|
+
* Name of the repository to apply the policy.
|
|
111
|
+
*/
|
|
112
|
+
repositoryName: pulumi.Input<string>;
|
|
113
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.RepositoryPolicy = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides an Elastic Container Registry Public Repository Policy.
|
|
10
|
+
*
|
|
11
|
+
* Note that currently only one policy may be applied to a repository.
|
|
12
|
+
*
|
|
13
|
+
* > **NOTE:** This resource can only be used with `us-east-1` region.
|
|
14
|
+
*
|
|
15
|
+
* ## Example Usage
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as aws from "@pulumi/aws";
|
|
20
|
+
*
|
|
21
|
+
* const exampleRepository = new aws.ecrpublic.Repository("exampleRepository", {repositoryName: "Example"});
|
|
22
|
+
* const exampleRepositoryPolicy = new aws.ecrpublic.RepositoryPolicy("exampleRepositoryPolicy", {
|
|
23
|
+
* repositoryName: exampleRepository.repositoryName,
|
|
24
|
+
* policy: `{
|
|
25
|
+
* "Version": "2008-10-17",
|
|
26
|
+
* "Statement": [
|
|
27
|
+
* {
|
|
28
|
+
* "Sid": "new policy",
|
|
29
|
+
* "Effect": "Allow",
|
|
30
|
+
* "Principal": "*",
|
|
31
|
+
* "Action": [
|
|
32
|
+
* "ecr:GetDownloadUrlForLayer",
|
|
33
|
+
* "ecr:BatchGetImage",
|
|
34
|
+
* "ecr:BatchCheckLayerAvailability",
|
|
35
|
+
* "ecr:PutImage",
|
|
36
|
+
* "ecr:InitiateLayerUpload",
|
|
37
|
+
* "ecr:UploadLayerPart",
|
|
38
|
+
* "ecr:CompleteLayerUpload",
|
|
39
|
+
* "ecr:DescribeRepositories",
|
|
40
|
+
* "ecr:GetRepositoryPolicy",
|
|
41
|
+
* "ecr:ListImages",
|
|
42
|
+
* "ecr:DeleteRepository",
|
|
43
|
+
* "ecr:BatchDeleteImage",
|
|
44
|
+
* "ecr:SetRepositoryPolicy",
|
|
45
|
+
* "ecr:DeleteRepositoryPolicy"
|
|
46
|
+
* ]
|
|
47
|
+
* }
|
|
48
|
+
* ]
|
|
49
|
+
* }
|
|
50
|
+
* `,
|
|
51
|
+
* });
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* ## Import
|
|
55
|
+
*
|
|
56
|
+
* ECR Public Repository Policy can be imported using the repository name, e.g.
|
|
57
|
+
*
|
|
58
|
+
* ```sh
|
|
59
|
+
* $ pulumi import aws:ecrpublic/repositoryPolicy:RepositoryPolicy example example
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
class RepositoryPolicy extends pulumi.CustomResource {
|
|
63
|
+
constructor(name, argsOrState, opts) {
|
|
64
|
+
let inputs = {};
|
|
65
|
+
opts = opts || {};
|
|
66
|
+
if (opts.id) {
|
|
67
|
+
const state = argsOrState;
|
|
68
|
+
inputs["policy"] = state ? state.policy : undefined;
|
|
69
|
+
inputs["registryId"] = state ? state.registryId : undefined;
|
|
70
|
+
inputs["repositoryName"] = state ? state.repositoryName : undefined;
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
const args = argsOrState;
|
|
74
|
+
if ((!args || args.policy === undefined) && !opts.urn) {
|
|
75
|
+
throw new Error("Missing required property 'policy'");
|
|
76
|
+
}
|
|
77
|
+
if ((!args || args.repositoryName === undefined) && !opts.urn) {
|
|
78
|
+
throw new Error("Missing required property 'repositoryName'");
|
|
79
|
+
}
|
|
80
|
+
inputs["policy"] = args ? args.policy : undefined;
|
|
81
|
+
inputs["repositoryName"] = args ? args.repositoryName : undefined;
|
|
82
|
+
inputs["registryId"] = undefined /*out*/;
|
|
83
|
+
}
|
|
84
|
+
if (!opts.version) {
|
|
85
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
86
|
+
}
|
|
87
|
+
super(RepositoryPolicy.__pulumiType, name, inputs, opts);
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Get an existing RepositoryPolicy resource's state with the given name, ID, and optional extra
|
|
91
|
+
* properties used to qualify the lookup.
|
|
92
|
+
*
|
|
93
|
+
* @param name The _unique_ name of the resulting resource.
|
|
94
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
95
|
+
* @param state Any extra arguments used during the lookup.
|
|
96
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
97
|
+
*/
|
|
98
|
+
static get(name, id, state, opts) {
|
|
99
|
+
return new RepositoryPolicy(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Returns true if the given object is an instance of RepositoryPolicy. This is designed to work even
|
|
103
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
104
|
+
*/
|
|
105
|
+
static isInstance(obj) {
|
|
106
|
+
if (obj === undefined || obj === null) {
|
|
107
|
+
return false;
|
|
108
|
+
}
|
|
109
|
+
return obj['__pulumiType'] === RepositoryPolicy.__pulumiType;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
exports.RepositoryPolicy = RepositoryPolicy;
|
|
113
|
+
/** @internal */
|
|
114
|
+
RepositoryPolicy.__pulumiType = 'aws:ecrpublic/repositoryPolicy:RepositoryPolicy';
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C,CAAC,CAAC;aACjE;YACD,MAAM,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAClD,MAAM,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,MAAM,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC5C;QACD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACf,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE,EAAC,CAAC,CAAC;SACxE;QACD,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;IArED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6B,EAAE,IAAmC;QAC3H,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACvE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,gBAAgB,CAAC,YAAY,CAAC;IACjE,CAAC;;AA1BL,4CAuEC;AAzDG,gBAAgB;AACO,6BAAY,GAAG,iDAAiD,CAAC"}
|
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
+
* Provides an ECS default account setting for a specific ECS Resource name within a specific region. More information can be found on the [ECS Developer Guide](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html).
|
|
4
|
+
*
|
|
5
|
+
* > **NOTE:** The AWS API does not delete this resource. When you run `destroy`, the provider will attempt to disable the setting.
|
|
6
|
+
*
|
|
7
|
+
* > **NOTE:** Your AWS account may not support disabling `containerInstanceLongArnFormat`, `serviceLongArnFormat`, and `taskLongArnFormat`. If your account does not support disabling these, "destroying" this resource will not disable the setting nor cause a provider error. However, the AWS Provider will log an AWS error: `InvalidParameterException: You can no longer disable Long Arn settings`.
|
|
8
|
+
*
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as aws from "@pulumi/aws";
|
|
14
|
+
*
|
|
15
|
+
* const test = new aws.ecs.AccountSettingDefault("test", {
|
|
16
|
+
* value: "enabled",
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
3
20
|
* ## Import
|
|
4
21
|
*
|
|
5
22
|
* ECS Account Setting defaults can be imported using the `name`, e.g.,
|
|
@@ -6,6 +6,23 @@ exports.AccountSettingDefault = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
+
* Provides an ECS default account setting for a specific ECS Resource name within a specific region. More information can be found on the [ECS Developer Guide](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html).
|
|
10
|
+
*
|
|
11
|
+
* > **NOTE:** The AWS API does not delete this resource. When you run `destroy`, the provider will attempt to disable the setting.
|
|
12
|
+
*
|
|
13
|
+
* > **NOTE:** Your AWS account may not support disabling `containerInstanceLongArnFormat`, `serviceLongArnFormat`, and `taskLongArnFormat`. If your account does not support disabling these, "destroying" this resource will not disable the setting nor cause a provider error. However, the AWS Provider will log an AWS error: `InvalidParameterException: You can no longer disable Long Arn settings`.
|
|
14
|
+
*
|
|
15
|
+
* ## Example Usage
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as aws from "@pulumi/aws";
|
|
20
|
+
*
|
|
21
|
+
* const test = new aws.ecs.AccountSettingDefault("test", {
|
|
22
|
+
* value: "enabled",
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
9
26
|
* ## Import
|
|
10
27
|
*
|
|
11
28
|
* ECS Account Setting defaults can be imported using the `name`, e.g.,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accountSettingDefault.js","sourceRoot":"","sources":["../../ecs/accountSettingDefault.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"accountSettingDefault.js","sourceRoot":"","sources":["../../ecs/accountSettingDefault.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAa,qBAAsB,SAAQ,MAAM,CAAC,cAAc;IA8C5D,YAAY,IAAY,EAAE,WAAoE,EAAE,IAAmC;QAC/H,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAqD,CAAC;YACpE,MAAM,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YAChD,MAAM,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,MAAM,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,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O,kCAAY,GAAG,qDAAqD,CAAC"}
|
|
@@ -65,6 +65,9 @@ export declare class CapacityProvider extends pulumi.CustomResource {
|
|
|
65
65
|
* Name of the capacity provider.
|
|
66
66
|
*/
|
|
67
67
|
readonly name: pulumi.Output<string>;
|
|
68
|
+
/**
|
|
69
|
+
* Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
70
|
+
*/
|
|
68
71
|
readonly tags: pulumi.Output<{
|
|
69
72
|
[key: string]: string;
|
|
70
73
|
} | undefined>;
|
|
@@ -96,6 +99,9 @@ export interface CapacityProviderState {
|
|
|
96
99
|
* Name of the capacity provider.
|
|
97
100
|
*/
|
|
98
101
|
name?: pulumi.Input<string>;
|
|
102
|
+
/**
|
|
103
|
+
* Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
104
|
+
*/
|
|
99
105
|
tags?: pulumi.Input<{
|
|
100
106
|
[key: string]: pulumi.Input<string>;
|
|
101
107
|
}>;
|
|
@@ -115,6 +121,9 @@ export interface CapacityProviderArgs {
|
|
|
115
121
|
* Name of the capacity provider.
|
|
116
122
|
*/
|
|
117
123
|
name?: pulumi.Input<string>;
|
|
124
|
+
/**
|
|
125
|
+
* Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
126
|
+
*/
|
|
118
127
|
tags?: pulumi.Input<{
|
|
119
128
|
[key: string]: pulumi.Input<string>;
|
|
120
129
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capacityProvider.js","sourceRoot":"","sources":["../../ecs/capacityProvider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;
|
|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 +88,9 @@ export declare class Cluster extends pulumi.CustomResource {
|
|
|
88
88
|
* Configuration block(s) with cluster settings. For example, this can be used to enable CloudWatch Container Insights for a cluster. Detailed below.
|
|
89
89
|
*/
|
|
90
90
|
readonly settings: pulumi.Output<outputs.ecs.ClusterSetting[]>;
|
|
91
|
+
/**
|
|
92
|
+
* Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
93
|
+
*/
|
|
91
94
|
readonly tags: pulumi.Output<{
|
|
92
95
|
[key: string]: string;
|
|
93
96
|
} | undefined>;
|
|
@@ -131,6 +134,9 @@ export interface ClusterState {
|
|
|
131
134
|
* Configuration block(s) with cluster settings. For example, this can be used to enable CloudWatch Container Insights for a cluster. Detailed below.
|
|
132
135
|
*/
|
|
133
136
|
settings?: pulumi.Input<pulumi.Input<inputs.ecs.ClusterSetting>[]>;
|
|
137
|
+
/**
|
|
138
|
+
* Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
139
|
+
*/
|
|
134
140
|
tags?: pulumi.Input<{
|
|
135
141
|
[key: string]: pulumi.Input<string>;
|
|
136
142
|
}>;
|
|
@@ -162,6 +168,9 @@ export interface ClusterArgs {
|
|
|
162
168
|
* Configuration block(s) with cluster settings. For example, this can be used to enable CloudWatch Container Insights for a cluster. Detailed below.
|
|
163
169
|
*/
|
|
164
170
|
settings?: pulumi.Input<pulumi.Input<inputs.ecs.ClusterSetting>[]>;
|
|
171
|
+
/**
|
|
172
|
+
* Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
173
|
+
*/
|
|
165
174
|
tags?: pulumi.Input<{
|
|
166
175
|
[key: string]: pulumi.Input<string>;
|
|
167
176
|
}>;
|
package/ecs/cluster.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cluster.js","sourceRoot":"","sources":["../../ecs/cluster.ts"],"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,EAAE,SAAS,CAAC,UAAU,EAAE,EAAC,CAAC,CAAC;SACxE;QACD,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IACpD,CAAC;IA7FD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoB,EAAE,IAAmC;QAClH,OAAO,IAAI,OAAO,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC9D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,OAAO,CAAC,YAAY,CAAC;IACxD,CAAC;;AA1BL,0BA+FC;AAjFG,gBAAgB;AACO,oBAAY,GAAG,yBAAyB,CAAC"}
|
package/ecs/index.d.ts
CHANGED
package/ecs/index.js
CHANGED
|
@@ -26,6 +26,7 @@ __exportStar(require("./getTaskDefinition"), exports);
|
|
|
26
26
|
__exportStar(require("./service"), exports);
|
|
27
27
|
__exportStar(require("./tag"), exports);
|
|
28
28
|
__exportStar(require("./taskDefinition"), exports);
|
|
29
|
+
__exportStar(require("./taskSet"), exports);
|
|
29
30
|
// Import resources to register:
|
|
30
31
|
const accountSettingDefault_1 = require("./accountSettingDefault");
|
|
31
32
|
const capacityProvider_1 = require("./capacityProvider");
|
|
@@ -33,6 +34,7 @@ const cluster_1 = require("./cluster");
|
|
|
33
34
|
const service_1 = require("./service");
|
|
34
35
|
const tag_1 = require("./tag");
|
|
35
36
|
const taskDefinition_1 = require("./taskDefinition");
|
|
37
|
+
const taskSet_1 = require("./taskSet");
|
|
36
38
|
const _module = {
|
|
37
39
|
version: utilities.getVersion(),
|
|
38
40
|
construct: (name, type, urn) => {
|
|
@@ -49,6 +51,8 @@ const _module = {
|
|
|
49
51
|
return new tag_1.Tag(name, undefined, { urn });
|
|
50
52
|
case "aws:ecs/taskDefinition:TaskDefinition":
|
|
51
53
|
return new taskDefinition_1.TaskDefinition(name, undefined, { urn });
|
|
54
|
+
case "aws:ecs/taskSet:TaskSet":
|
|
55
|
+
return new taskSet_1.TaskSet(name, undefined, { urn });
|
|
52
56
|
default:
|
|
53
57
|
throw new Error(`unknown resource type ${type}`);
|
|
54
58
|
}
|
|
@@ -60,4 +64,5 @@ pulumi.runtime.registerResourceModule("aws", "ecs/cluster", _module);
|
|
|
60
64
|
pulumi.runtime.registerResourceModule("aws", "ecs/service", _module);
|
|
61
65
|
pulumi.runtime.registerResourceModule("aws", "ecs/tag", _module);
|
|
62
66
|
pulumi.runtime.registerResourceModule("aws", "ecs/taskDefinition", _module);
|
|
67
|
+
pulumi.runtime.registerResourceModule("aws", "ecs/taskSet", _module);
|
|
63
68
|
//# sourceMappingURL=index.js.map
|
package/ecs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ecs/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,kBAAkB;AAClB,0DAAwC;AACxC,qDAAmC;AACnC,4CAA0B;AAC1B,8CAA4B;AAC5B,+CAA6B;AAC7B,2DAAyC;AACzC,+CAA6B;AAC7B,sDAAoC;AACpC,4CAA0B;AAC1B,wCAAsB;AACtB,mDAAiC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ecs/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,kBAAkB;AAClB,0DAAwC;AACxC,qDAAmC;AACnC,4CAA0B;AAC1B,8CAA4B;AAC5B,+CAA6B;AAC7B,2DAAyC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M,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,2BAA2B,EAAE,OAAO,CAAC,CAAA;AAClF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,sBAAsB,EAAE,OAAO,CAAC,CAAA;AAC7E,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,aAAa,EAAE,OAAO,CAAC,CAAA;AACpE,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,aAAa,EAAE,OAAO,CAAC,CAAA;AACpE,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,CAAC,CAAA;AAChE,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,oBAAoB,EAAE,OAAO,CAAC,CAAA;AAC3E,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,aAAa,EAAE,OAAO,CAAC,CAAA"}
|
package/ecs/taskDefinition.d.ts
CHANGED
|
@@ -157,30 +157,30 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
157
157
|
*
|
|
158
158
|
* const test = new aws.ecs.TaskDefinition("test", {
|
|
159
159
|
* containerDefinitions: `[
|
|
160
|
-
*
|
|
161
|
-
*
|
|
162
|
-
*
|
|
163
|
-
*
|
|
164
|
-
*
|
|
165
|
-
*
|
|
166
|
-
*
|
|
167
|
-
*
|
|
168
|
-
*
|
|
169
|
-
*
|
|
170
|
-
*
|
|
171
|
-
*
|
|
172
|
-
*
|
|
173
|
-
*
|
|
174
|
-
*
|
|
175
|
-
*
|
|
176
|
-
*
|
|
160
|
+
* {
|
|
161
|
+
* "cpu": 10,
|
|
162
|
+
* "command": ["sleep", "10"],
|
|
163
|
+
* "entryPoint": ["/"],
|
|
164
|
+
* "environment": [
|
|
165
|
+
* {"name": "VARNAME", "value": "VARVAL"}
|
|
166
|
+
* ],
|
|
167
|
+
* "essential": true,
|
|
168
|
+
* "image": "jenkins",
|
|
169
|
+
* "memory": 128,
|
|
170
|
+
* "name": "jenkins",
|
|
171
|
+
* "portMappings": [
|
|
172
|
+
* {
|
|
173
|
+
* "containerPort": 80,
|
|
174
|
+
* "hostPort": 8080
|
|
175
|
+
* }
|
|
176
|
+
* ],
|
|
177
177
|
* "resourceRequirements":[
|
|
178
178
|
* {
|
|
179
179
|
* "type":"InferenceAccelerator",
|
|
180
180
|
* "value":"device_1"
|
|
181
181
|
* }
|
|
182
182
|
* ]
|
|
183
|
-
*
|
|
183
|
+
* }
|
|
184
184
|
* ]
|
|
185
185
|
* `,
|
|
186
186
|
* family: "test",
|
|
@@ -190,6 +190,34 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
190
190
|
* }],
|
|
191
191
|
* });
|
|
192
192
|
* ```
|
|
193
|
+
* ### Example Using `runtimePlatform` and `fargate`
|
|
194
|
+
*
|
|
195
|
+
* ```typescript
|
|
196
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
197
|
+
* import * as aws from "@pulumi/aws";
|
|
198
|
+
*
|
|
199
|
+
* const test = new aws.ecs.TaskDefinition("test", {
|
|
200
|
+
* containerDefinitions: `[
|
|
201
|
+
* {
|
|
202
|
+
* "name": "iis",
|
|
203
|
+
* "image": "mcr.microsoft.com/windows/servercore/iis",
|
|
204
|
+
* "cpu": 1024,
|
|
205
|
+
* "memory": 2048,
|
|
206
|
+
* "essential": true
|
|
207
|
+
* }
|
|
208
|
+
* ]
|
|
209
|
+
* `,
|
|
210
|
+
* cpu: "1024",
|
|
211
|
+
* family: "test",
|
|
212
|
+
* memory: "2048",
|
|
213
|
+
* networkMode: "awsvpc",
|
|
214
|
+
* requiresCompatibilities: ["FARGATE"],
|
|
215
|
+
* runtimePlatform: {
|
|
216
|
+
* cpuArchitecture: "X86_64",
|
|
217
|
+
* operatingSystemFamily: "WINDOWS_SERVER_2019_CORE",
|
|
218
|
+
* },
|
|
219
|
+
* });
|
|
220
|
+
* ```
|
|
193
221
|
*
|
|
194
222
|
* ## Import
|
|
195
223
|
*
|
|
@@ -275,6 +303,10 @@ export declare class TaskDefinition extends pulumi.CustomResource {
|
|
|
275
303
|
* Revision of the task in a particular family.
|
|
276
304
|
*/
|
|
277
305
|
readonly revision: pulumi.Output<number>;
|
|
306
|
+
/**
|
|
307
|
+
* Configuration block for runtimePlatform that containers in your task may use.
|
|
308
|
+
*/
|
|
309
|
+
readonly runtimePlatform: pulumi.Output<outputs.ecs.TaskDefinitionRuntimePlatform | undefined>;
|
|
278
310
|
/**
|
|
279
311
|
* Key-value map of resource tags.
|
|
280
312
|
*/
|
|
@@ -368,6 +400,10 @@ export interface TaskDefinitionState {
|
|
|
368
400
|
* Revision of the task in a particular family.
|
|
369
401
|
*/
|
|
370
402
|
revision?: pulumi.Input<number>;
|
|
403
|
+
/**
|
|
404
|
+
* Configuration block for runtimePlatform that containers in your task may use.
|
|
405
|
+
*/
|
|
406
|
+
runtimePlatform?: pulumi.Input<inputs.ecs.TaskDefinitionRuntimePlatform>;
|
|
371
407
|
/**
|
|
372
408
|
* Key-value map of resource tags.
|
|
373
409
|
*/
|
|
@@ -445,6 +481,10 @@ export interface TaskDefinitionArgs {
|
|
|
445
481
|
* Set of launch types required by the task. The valid values are `EC2` and `FARGATE`.
|
|
446
482
|
*/
|
|
447
483
|
requiresCompatibilities?: pulumi.Input<pulumi.Input<string>[]>;
|
|
484
|
+
/**
|
|
485
|
+
* Configuration block for runtimePlatform that containers in your task may use.
|
|
486
|
+
*/
|
|
487
|
+
runtimePlatform?: pulumi.Input<inputs.ecs.TaskDefinitionRuntimePlatform>;
|
|
448
488
|
/**
|
|
449
489
|
* Key-value map of resource tags.
|
|
450
490
|
*/
|
package/ecs/taskDefinition.js
CHANGED
|
@@ -162,30 +162,30 @@ const utilities = require("../utilities");
|
|
|
162
162
|
*
|
|
163
163
|
* const test = new aws.ecs.TaskDefinition("test", {
|
|
164
164
|
* containerDefinitions: `[
|
|
165
|
-
*
|
|
166
|
-
*
|
|
167
|
-
*
|
|
168
|
-
*
|
|
169
|
-
*
|
|
170
|
-
*
|
|
171
|
-
*
|
|
172
|
-
*
|
|
173
|
-
*
|
|
174
|
-
*
|
|
175
|
-
*
|
|
176
|
-
*
|
|
177
|
-
*
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
*
|
|
181
|
-
*
|
|
165
|
+
* {
|
|
166
|
+
* "cpu": 10,
|
|
167
|
+
* "command": ["sleep", "10"],
|
|
168
|
+
* "entryPoint": ["/"],
|
|
169
|
+
* "environment": [
|
|
170
|
+
* {"name": "VARNAME", "value": "VARVAL"}
|
|
171
|
+
* ],
|
|
172
|
+
* "essential": true,
|
|
173
|
+
* "image": "jenkins",
|
|
174
|
+
* "memory": 128,
|
|
175
|
+
* "name": "jenkins",
|
|
176
|
+
* "portMappings": [
|
|
177
|
+
* {
|
|
178
|
+
* "containerPort": 80,
|
|
179
|
+
* "hostPort": 8080
|
|
180
|
+
* }
|
|
181
|
+
* ],
|
|
182
182
|
* "resourceRequirements":[
|
|
183
183
|
* {
|
|
184
184
|
* "type":"InferenceAccelerator",
|
|
185
185
|
* "value":"device_1"
|
|
186
186
|
* }
|
|
187
187
|
* ]
|
|
188
|
-
*
|
|
188
|
+
* }
|
|
189
189
|
* ]
|
|
190
190
|
* `,
|
|
191
191
|
* family: "test",
|
|
@@ -195,6 +195,34 @@ const utilities = require("../utilities");
|
|
|
195
195
|
* }],
|
|
196
196
|
* });
|
|
197
197
|
* ```
|
|
198
|
+
* ### Example Using `runtimePlatform` and `fargate`
|
|
199
|
+
*
|
|
200
|
+
* ```typescript
|
|
201
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
202
|
+
* import * as aws from "@pulumi/aws";
|
|
203
|
+
*
|
|
204
|
+
* const test = new aws.ecs.TaskDefinition("test", {
|
|
205
|
+
* containerDefinitions: `[
|
|
206
|
+
* {
|
|
207
|
+
* "name": "iis",
|
|
208
|
+
* "image": "mcr.microsoft.com/windows/servercore/iis",
|
|
209
|
+
* "cpu": 1024,
|
|
210
|
+
* "memory": 2048,
|
|
211
|
+
* "essential": true
|
|
212
|
+
* }
|
|
213
|
+
* ]
|
|
214
|
+
* `,
|
|
215
|
+
* cpu: "1024",
|
|
216
|
+
* family: "test",
|
|
217
|
+
* memory: "2048",
|
|
218
|
+
* networkMode: "awsvpc",
|
|
219
|
+
* requiresCompatibilities: ["FARGATE"],
|
|
220
|
+
* runtimePlatform: {
|
|
221
|
+
* cpuArchitecture: "X86_64",
|
|
222
|
+
* operatingSystemFamily: "WINDOWS_SERVER_2019_CORE",
|
|
223
|
+
* },
|
|
224
|
+
* });
|
|
225
|
+
* ```
|
|
198
226
|
*
|
|
199
227
|
* ## Import
|
|
200
228
|
*
|
|
@@ -225,6 +253,7 @@ class TaskDefinition extends pulumi.CustomResource {
|
|
|
225
253
|
inputs["proxyConfiguration"] = state ? state.proxyConfiguration : undefined;
|
|
226
254
|
inputs["requiresCompatibilities"] = state ? state.requiresCompatibilities : undefined;
|
|
227
255
|
inputs["revision"] = state ? state.revision : undefined;
|
|
256
|
+
inputs["runtimePlatform"] = state ? state.runtimePlatform : undefined;
|
|
228
257
|
inputs["tags"] = state ? state.tags : undefined;
|
|
229
258
|
inputs["tagsAll"] = state ? state.tagsAll : undefined;
|
|
230
259
|
inputs["taskRoleArn"] = state ? state.taskRoleArn : undefined;
|
|
@@ -251,6 +280,7 @@ class TaskDefinition extends pulumi.CustomResource {
|
|
|
251
280
|
inputs["placementConstraints"] = args ? args.placementConstraints : undefined;
|
|
252
281
|
inputs["proxyConfiguration"] = args ? args.proxyConfiguration : undefined;
|
|
253
282
|
inputs["requiresCompatibilities"] = args ? args.requiresCompatibilities : undefined;
|
|
283
|
+
inputs["runtimePlatform"] = args ? args.runtimePlatform : undefined;
|
|
254
284
|
inputs["tags"] = args ? args.tags : undefined;
|
|
255
285
|
inputs["taskRoleArn"] = args ? args.taskRoleArn : undefined;
|
|
256
286
|
inputs["volumes"] = args ? args.volumes : undefined;
|