Creates a product in the organisations service
Project description
@reapit-cdk/reapit-product
Creates a product in the organisations service
Package Installation:
yarn add --dev @reapit-cdk/reapit-product
# or
npm install @reapit-cdk/reapit-product --save-dev
Usage
import { CfnOutput, Stack, App } from 'aws-cdk-lib'
import { ReapitProductProvider } from '@reapit-cdk/reapit-product'
import { RestApi } from 'aws-cdk-lib/aws-apigateway'
const app = new App()
const stack = new Stack(app, 'stack-name')
const orgsApiGwId = '' // imported from somewhere or hard coded
const organisationsServiceApiGateway = RestApi.fromRestApiId(stack, 'orgs-api-gw', orgsApiGwId)
const productProvider = new ReapitProductProvider(stack, 'product-provider', {
organisationsServiceApiGateway,
stageName: 'api',
})
const product = productProvider.createProduct(stack, 'product', {
name: 'a product name',
callbackUrls: [],
grant: 'authorizationCode',
isInternalApp: true,
requiresUserAdmin: false,
scopes: [],
signoutUrls: [],
})
new CfnOutput(stack, 'client-id', {
value: product.externalId,
})
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for reapit-cdk.reapit-product-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4852bdf7e9da8c48a30d977977fec8475f1131dde016dccac135a850f583e835 |
|
MD5 | a4ff1024ce4c8e6080a93fa791c1863b |
|
BLAKE2b-256 | 6a61bc949461ebc49ceaa5ad3cede7777dad8ed019e561bc827e78680963f944 |
Close
Hashes for reapit_cdk.reapit_product-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f29a375eda489ddd4ead47da27b1c7fbb22936a13cf01890b77d8b1cdea7f661 |
|
MD5 | 7297607737df9c310ff3bdf0fd36b815 |
|
BLAKE2b-256 | b622f981d49ad705a1e81e8e21122f4140a1df38e6f941ae7a26a62675738ab5 |