@Stability(value=Experimental)
See: Description
| Interface | Description |
|---|---|
| CfnAcceptedPortfolioShareProps |
Properties for defining a `AWS::ServiceCatalog::AcceptedPortfolioShare`.
|
| CfnCloudFormationProduct.ProvisioningArtifactPropertiesProperty | |
| CfnCloudFormationProductProps |
Properties for defining a `AWS::ServiceCatalog::CloudFormationProduct`.
|
| CfnCloudFormationProvisionedProduct.ProvisioningParameterProperty | |
| CfnCloudFormationProvisionedProduct.ProvisioningPreferencesProperty | |
| CfnCloudFormationProvisionedProductProps |
Properties for defining a `AWS::ServiceCatalog::CloudFormationProvisionedProduct`.
|
| CfnLaunchNotificationConstraintProps |
Properties for defining a `AWS::ServiceCatalog::LaunchNotificationConstraint`.
|
| CfnLaunchRoleConstraintProps |
Properties for defining a `AWS::ServiceCatalog::LaunchRoleConstraint`.
|
| CfnLaunchTemplateConstraintProps |
Properties for defining a `AWS::ServiceCatalog::LaunchTemplateConstraint`.
|
| CfnPortfolioPrincipalAssociationProps |
Properties for defining a `AWS::ServiceCatalog::PortfolioPrincipalAssociation`.
|
| CfnPortfolioProductAssociationProps |
Properties for defining a `AWS::ServiceCatalog::PortfolioProductAssociation`.
|
| CfnPortfolioProps |
Properties for defining a `AWS::ServiceCatalog::Portfolio`.
|
| CfnPortfolioShareProps |
Properties for defining a `AWS::ServiceCatalog::PortfolioShare`.
|
| CfnResourceUpdateConstraintProps |
Properties for defining a `AWS::ServiceCatalog::ResourceUpdateConstraint`.
|
| CfnServiceAction.DefinitionParameterProperty | |
| CfnServiceActionAssociationProps |
Properties for defining a `AWS::ServiceCatalog::ServiceActionAssociation`.
|
| CfnServiceActionProps |
Properties for defining a `AWS::ServiceCatalog::ServiceAction`.
|
| CfnStackSetConstraintProps |
Properties for defining a `AWS::ServiceCatalog::StackSetConstraint`.
|
| CfnTagOptionAssociationProps |
Properties for defining a `AWS::ServiceCatalog::TagOptionAssociation`.
|
| CfnTagOptionProps |
Properties for defining a `AWS::ServiceCatalog::TagOption`.
|
| CloudFormationProductProps |
(experimental) Properties for a Cloudformation Product.
|
| CloudFormationProductVersion |
(experimental) Properties of product version (also known as a provisioning artifact).
|
| CloudFormationTemplateConfig |
(experimental) Result of binding `Template` into a `Product`.
|
| IPortfolio |
(experimental) A Service Catalog portfolio.
|
| IPortfolio.Jsii$Default |
Internal default implementation for
IPortfolio. |
| IProduct |
(experimental) A Service Catalog product, currently only supports type CloudFormationProduct.
|
| IProduct.Jsii$Default |
Internal default implementation for
IProduct. |
| PortfolioProps |
(experimental) Properties for a Portfolio.
|
| PortfolioShareOptions |
(experimental) Options for portfolio share.
|
| Enum | Description |
|---|---|
| AcceptLanguage |
(experimental) The language code.
|
---
All classes with the
Cfnprefix in this module (CFN Resources) are always stable and safe to use.
The APIs of higher level constructs in this module are experimental and under active development. They are subject to non-backward compatible changes or removal in any future version. These are not subject to the Semantic Versioning model and breaking changes will be announced in the release notes. This means that while you may use them, you may need to update your source code when upgrading to a newer version of this package.
AWS Service Catalog enables organizations to create and manage catalogs of products for their end users that are approved for use on AWS.
The @aws-cdk/aws-servicecatalog package contains resources that enable users to automate governance and management of their AWS resources at scale.
// Example automatically generated. See https://github.com/aws/jsii/issues/826 import software.amazon.awscdk.services.servicecatalog.*;
AWS Service Catalog portfolios allow admins to manage products that their end users have access to.
Using the CDK, a new portfolio can be created with the Portfolio construct:
// Example automatically generated. See https://github.com/aws/jsii/issues/826
Portfolio.Builder.create(this, "MyFirstPortfolio")
.displayName("MyFirstPortfolio")
.providerName("MyTeam")
.build();
You can also specify properties such as description and acceptLanguage
to help better catalog and manage your portfolios.
// Example automatically generated. See https://github.com/aws/jsii/issues/826
Portfolio.Builder.create(this, "MyFirstPortfolio")
.displayName("MyFirstPortfolio")
.providerName("MyTeam")
.description("Portfolio for a project")
.acceptLanguage(servicecatalog.AcceptLanguage.getEN())
.build();
Read more at Creating and Managing Portfolios.
A portfolio that has been created outside the stack can be imported into your CDK app.
Portfolios can be imported by their ARN via the Portfolio.fromPortfolioArn() API:
// Example automatically generated. See https://github.com/aws/jsii/issues/826 Object portfolio = servicecatalog.Portfolio.fromPortfolioArn(this, "MyImportedPortfolio", "arn:aws:catalog:region:account-id:portfolio/port-abcdefghi");
You can manage end user access to a portfolio by granting permissions to IAM entities like a user, group, or role.
Once resources are deployed end users will be able to access them via the console or service catalog CLI.
// Example automatically generated. See https://github.com/aws/jsii/issues/826
import software.amazon.awscdk.services.iam.*;
User user = new User(this, "MyUser");
portfolio.giveAccessToUser(user);
Role role = new Role(this, "MyRole", new RoleProps()
.assumedBy(new AccountRootPrincipal()));
portfolio.giveAccessToRole(role);
Group group = new Group(this, "MyGroup");
portfolio.giveAccessToGroup(group);
A portfolio can be programatically shared with other accounts so that specified users can also access it:
// Example automatically generated. See https://github.com/aws/jsii/issues/826
portfolio.shareWithAccount("012345678901");
Products are the resources you are allowing end users to provision and utilize.
The CDK currently only supports adding products of type Cloudformation product.
Using the CDK, a new Product can be created with the CloudFormationProduct construct.
CloudFormationTemplate.fromUrl can be utilized to create a Product using a Cloudformation template directly from an URL:
// Example automatically generated. See https://github.com/aws/jsii/issues/826
Object product = CloudFormationProduct.Builder.create(this, "MyFirstProduct")
.productName("My Product")
.owner("Product Owner")
.productVersions(asList(Map.of(
"productVersionName", "v1",
"cloudFormationTemplate", servicecatalog.CloudFormationTemplate.fromUrl("https://raw.githubusercontent.com/awslabs/aws-cloudformation-templates/master/aws/services/ServiceCatalog/Product.yaml"))))
.build();
A CloudFormationProduct can also be created using a Cloudformation template from an Asset.
Assets are files that are uploaded to an S3 Bucket before deployment.
CloudFormationTemplate.fromAsset can be utilized to create a Product by passing the path to a local template file on your disk:
// Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
Object product = CloudFormationProduct.Builder.create(this, "MyFirstProduct")
.productName("My Product")
.owner("Product Owner")
.productVersions(asList(Map.of(
"productVersionName", "v1",
"cloudFormationTemplate", servicecatalog.CloudFormationTemplate.fromUrl("https://raw.githubusercontent.com/awslabs/aws-cloudformation-templates/master/aws/services/ServiceCatalog/Product.yaml")), Map.of(
"productVersionName", "v2",
"cloudFormationTemplate", servicecatalog.CloudFormationTemplate.fromAsset(path.join(__dirname, "development-environment.template.json")))))
.build();
Copyright © 2021. All rights reserved.