%global _empty_manifest_terminate_build 0 Name: python-cdk-simplewebsite-deploy Version: 2.0.59 Release: 1 Summary: This is an AWS CDK v2 Construct to simplify deploying a single-page website use CloudFront distributions. License: Apache-2.0 URL: https://github.com/SnapPetal/cdk-simplewebsite-deploy Source0: https://mirrors.nju.edu.cn/pypi/web/packages/68/9d/548c8b9cf102438289d9f5585790b764f26f6387d1ec440c1e52d633fadc/cdk-simplewebsite-deploy-2.0.59.tar.gz BuildArch: noarch Requires: python3-aws-cdk-lib Requires: python3-constructs Requires: python3-jsii Requires: python3-publication Requires: python3-typeguard %description [![License](https://img.shields.io/badge/License-Apache%202.0-yellowgreen.svg)](https://opensource.org/licenses/Apache-2.0) ![Build](https://github.com/SnapPetal/cdk-simplewebsite-deploy/workflows/build/badge.svg) ![Release](https://github.com/SnapPetal/cdk-simplewebsite-deploy/workflows/release/badge.svg?branch=main) # cdk-simplewebsite-deploy This is an AWS CDK Construct to simplify deploying a single-page website using either S3 buckets or CloudFront distributions. ## Installation and Usage ### [CreateBasicSite](https://github.com/snappetal/cdk-simplewebsite-deploy/blob/main/API.md#cdk-cloudfront-deploy-createbasicsite) #### Creates a simple website using S3 buckets with a domain hosted in Route 53. ##### Typescript ```console npm install cdk-simplewebsite-deploy ``` ```python import * as cdk from '@aws-cdk/core'; import { CreateBasicSite } from 'cdk-simplewebsite-deploy'; export class PipelineStack extends cdk.Stack { constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) { super(scope, id, props); new CreateBasicSite(stack, 'test-website', { websiteFolder: './src/build', indexDoc: 'index.html', hostedZone: 'example.com', }); } } ``` ##### C# ```console dotnet add package ThonBecker.CDK.SimpleWebsiteDeploy ``` ```cs using Amazon.CDK; using ThonBecker.CDK.SimpleWebsiteDeploy; namespace SimpleWebsiteDeploy { public class PipelineStack : Stack { internal PipelineStack(Construct scope, string id, IStackProps props = null) : base(scope, id, props) { new CreateBasicSite(scope, "test-website", new BasicSiteConfiguration() { WebsiteFolder = "./src/build", IndexDoc = "index.html", HostedZone = "example.com", }); } } } ``` ##### Java ```xml com.thonbecker.simplewebsitedeploy cdk-simplewebsite-deploy 0.4.2 ``` ```java package com.myorg; import software.amazon.awscdk.core.Construct; import software.amazon.awscdk.core.Stack; import software.amazon.awscdk.core.StackProps; import com.thonbecker.simplewebsitedeploy.CreateBasicSite; public class MyProjectStack extends Stack { public MyProjectStack(final Construct scope, final String id) { this(scope, id, null); } public MyProjectStack(final Construct scope, final String id, final StackProps props) { super(scope, id, props); CreateBasicSite.Builder.create(this, "test-website") .websiteFolder("./src/build") .indexDoc("index.html") .hostedZone("example.com"); } } ``` ##### Python ```console pip install cdk-simplewebsite-deploy ``` ```python from aws_cdk import Stack from cdk_simplewebsite_deploy import CreateBasicSite from constructs import Construct class MyProjectStack(Stack): def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None: super().__init__(scope, construct_id, **kwargs) CreateBasicSite(self, 'test-website', website_folder='./src/build', index_doc='index.html', hosted_zone='example.com') ``` ### [CreateCloudfrontSite](https://github.com/snappetal/cdk-simplewebsite-deploy/blob/main/API.md#cdk-cloudfront-deploy-createcloudfrontsite) #### Creates a simple website using a CloudFront distribution with a domain hosted in Route 53. ##### Typescript ```console npm install cdk-simplewebsite-deploy ``` ```python import * as cdk from '@aws-cdk/core'; import { CreateCloudfrontSite } from 'cdk-simplewebsite-deploy'; export class PipelineStack extends cdk.Stack { constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) { super(scope, id, props); new CreateCloudfrontSite(stack, 'test-website', { websiteFolder: './src/dist', indexDoc: 'index.html', hostedZone: 'example.com', subDomain: 'www.example.com', }); } } ``` ##### C# ```console dotnet add package ThonBecker.CDK.SimpleWebsiteDeploy ``` ```cs using Amazon.CDK; using ThonBecker.CDK.SimpleWebsiteDeploy; namespace SimpleWebsiteDeploy { public class PipelineStack : Stack { internal PipelineStack(Construct scope, string id, IStackProps props = null) : base(scope, id, props) { new CreateCloudfrontSite(scope, "test-website", new CloudfrontSiteConfiguration() { WebsiteFolder = "./src/build", IndexDoc = "index.html", HostedZone = "example.com", SubDomain = "www.example.com", }); } } } ``` ##### Java ```xml com.thonbecker.simplewebsitedeploy cdk-simplewebsite-deploy 0.4.2 ``` ```java package com.myorg; import software.amazon.awscdk.core.Construct; import software.amazon.awscdk.core.Stack; import software.amazon.awscdk.core.StackProps; import com.thonbecker.simplewebsitedeploy.CreateCloudfrontSite; public class MyProjectStack extends Stack { public MyProjectStack(final Construct scope, final String id) { this(scope, id, null); } public MyProjectStack(final Construct scope, final String id, final StackProps props) { super(scope, id, props); CreateCloudfrontSite.Builder.create(this, "test-website") .websiteFolder("./src/build") .indexDoc("index.html") .hostedZone("example.com") .subDomain("www.example.com"); } } ``` ##### Python ```console pip install cdk-simplewebsite-deploy ``` ```python from aws_cdk import core from cdk_simplewebsite_deploy import CreateCloudfrontSite class MyProjectStack(core.Stack): def __init__(self, scope: core.Construct, construct_id: str, **kwargs) -> None: super().__init__(scope, construct_id, **kwargs) CreateCloudfrontSite(self, 'test-website', website_folder='./src/build', index_doc='index.html', hosted_zone='example.com', sub_domain='www.example.com') ``` ## License Distributed under the [Apache-2.0](./LICENSE) license. %package -n python3-cdk-simplewebsite-deploy Summary: This is an AWS CDK v2 Construct to simplify deploying a single-page website use CloudFront distributions. Provides: python-cdk-simplewebsite-deploy BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-cdk-simplewebsite-deploy [![License](https://img.shields.io/badge/License-Apache%202.0-yellowgreen.svg)](https://opensource.org/licenses/Apache-2.0) ![Build](https://github.com/SnapPetal/cdk-simplewebsite-deploy/workflows/build/badge.svg) ![Release](https://github.com/SnapPetal/cdk-simplewebsite-deploy/workflows/release/badge.svg?branch=main) # cdk-simplewebsite-deploy This is an AWS CDK Construct to simplify deploying a single-page website using either S3 buckets or CloudFront distributions. ## Installation and Usage ### [CreateBasicSite](https://github.com/snappetal/cdk-simplewebsite-deploy/blob/main/API.md#cdk-cloudfront-deploy-createbasicsite) #### Creates a simple website using S3 buckets with a domain hosted in Route 53. ##### Typescript ```console npm install cdk-simplewebsite-deploy ``` ```python import * as cdk from '@aws-cdk/core'; import { CreateBasicSite } from 'cdk-simplewebsite-deploy'; export class PipelineStack extends cdk.Stack { constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) { super(scope, id, props); new CreateBasicSite(stack, 'test-website', { websiteFolder: './src/build', indexDoc: 'index.html', hostedZone: 'example.com', }); } } ``` ##### C# ```console dotnet add package ThonBecker.CDK.SimpleWebsiteDeploy ``` ```cs using Amazon.CDK; using ThonBecker.CDK.SimpleWebsiteDeploy; namespace SimpleWebsiteDeploy { public class PipelineStack : Stack { internal PipelineStack(Construct scope, string id, IStackProps props = null) : base(scope, id, props) { new CreateBasicSite(scope, "test-website", new BasicSiteConfiguration() { WebsiteFolder = "./src/build", IndexDoc = "index.html", HostedZone = "example.com", }); } } } ``` ##### Java ```xml com.thonbecker.simplewebsitedeploy cdk-simplewebsite-deploy 0.4.2 ``` ```java package com.myorg; import software.amazon.awscdk.core.Construct; import software.amazon.awscdk.core.Stack; import software.amazon.awscdk.core.StackProps; import com.thonbecker.simplewebsitedeploy.CreateBasicSite; public class MyProjectStack extends Stack { public MyProjectStack(final Construct scope, final String id) { this(scope, id, null); } public MyProjectStack(final Construct scope, final String id, final StackProps props) { super(scope, id, props); CreateBasicSite.Builder.create(this, "test-website") .websiteFolder("./src/build") .indexDoc("index.html") .hostedZone("example.com"); } } ``` ##### Python ```console pip install cdk-simplewebsite-deploy ``` ```python from aws_cdk import Stack from cdk_simplewebsite_deploy import CreateBasicSite from constructs import Construct class MyProjectStack(Stack): def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None: super().__init__(scope, construct_id, **kwargs) CreateBasicSite(self, 'test-website', website_folder='./src/build', index_doc='index.html', hosted_zone='example.com') ``` ### [CreateCloudfrontSite](https://github.com/snappetal/cdk-simplewebsite-deploy/blob/main/API.md#cdk-cloudfront-deploy-createcloudfrontsite) #### Creates a simple website using a CloudFront distribution with a domain hosted in Route 53. ##### Typescript ```console npm install cdk-simplewebsite-deploy ``` ```python import * as cdk from '@aws-cdk/core'; import { CreateCloudfrontSite } from 'cdk-simplewebsite-deploy'; export class PipelineStack extends cdk.Stack { constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) { super(scope, id, props); new CreateCloudfrontSite(stack, 'test-website', { websiteFolder: './src/dist', indexDoc: 'index.html', hostedZone: 'example.com', subDomain: 'www.example.com', }); } } ``` ##### C# ```console dotnet add package ThonBecker.CDK.SimpleWebsiteDeploy ``` ```cs using Amazon.CDK; using ThonBecker.CDK.SimpleWebsiteDeploy; namespace SimpleWebsiteDeploy { public class PipelineStack : Stack { internal PipelineStack(Construct scope, string id, IStackProps props = null) : base(scope, id, props) { new CreateCloudfrontSite(scope, "test-website", new CloudfrontSiteConfiguration() { WebsiteFolder = "./src/build", IndexDoc = "index.html", HostedZone = "example.com", SubDomain = "www.example.com", }); } } } ``` ##### Java ```xml com.thonbecker.simplewebsitedeploy cdk-simplewebsite-deploy 0.4.2 ``` ```java package com.myorg; import software.amazon.awscdk.core.Construct; import software.amazon.awscdk.core.Stack; import software.amazon.awscdk.core.StackProps; import com.thonbecker.simplewebsitedeploy.CreateCloudfrontSite; public class MyProjectStack extends Stack { public MyProjectStack(final Construct scope, final String id) { this(scope, id, null); } public MyProjectStack(final Construct scope, final String id, final StackProps props) { super(scope, id, props); CreateCloudfrontSite.Builder.create(this, "test-website") .websiteFolder("./src/build") .indexDoc("index.html") .hostedZone("example.com") .subDomain("www.example.com"); } } ``` ##### Python ```console pip install cdk-simplewebsite-deploy ``` ```python from aws_cdk import core from cdk_simplewebsite_deploy import CreateCloudfrontSite class MyProjectStack(core.Stack): def __init__(self, scope: core.Construct, construct_id: str, **kwargs) -> None: super().__init__(scope, construct_id, **kwargs) CreateCloudfrontSite(self, 'test-website', website_folder='./src/build', index_doc='index.html', hosted_zone='example.com', sub_domain='www.example.com') ``` ## License Distributed under the [Apache-2.0](./LICENSE) license. %package help Summary: Development documents and examples for cdk-simplewebsite-deploy Provides: python3-cdk-simplewebsite-deploy-doc %description help [![License](https://img.shields.io/badge/License-Apache%202.0-yellowgreen.svg)](https://opensource.org/licenses/Apache-2.0) ![Build](https://github.com/SnapPetal/cdk-simplewebsite-deploy/workflows/build/badge.svg) ![Release](https://github.com/SnapPetal/cdk-simplewebsite-deploy/workflows/release/badge.svg?branch=main) # cdk-simplewebsite-deploy This is an AWS CDK Construct to simplify deploying a single-page website using either S3 buckets or CloudFront distributions. ## Installation and Usage ### [CreateBasicSite](https://github.com/snappetal/cdk-simplewebsite-deploy/blob/main/API.md#cdk-cloudfront-deploy-createbasicsite) #### Creates a simple website using S3 buckets with a domain hosted in Route 53. ##### Typescript ```console npm install cdk-simplewebsite-deploy ``` ```python import * as cdk from '@aws-cdk/core'; import { CreateBasicSite } from 'cdk-simplewebsite-deploy'; export class PipelineStack extends cdk.Stack { constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) { super(scope, id, props); new CreateBasicSite(stack, 'test-website', { websiteFolder: './src/build', indexDoc: 'index.html', hostedZone: 'example.com', }); } } ``` ##### C# ```console dotnet add package ThonBecker.CDK.SimpleWebsiteDeploy ``` ```cs using Amazon.CDK; using ThonBecker.CDK.SimpleWebsiteDeploy; namespace SimpleWebsiteDeploy { public class PipelineStack : Stack { internal PipelineStack(Construct scope, string id, IStackProps props = null) : base(scope, id, props) { new CreateBasicSite(scope, "test-website", new BasicSiteConfiguration() { WebsiteFolder = "./src/build", IndexDoc = "index.html", HostedZone = "example.com", }); } } } ``` ##### Java ```xml com.thonbecker.simplewebsitedeploy cdk-simplewebsite-deploy 0.4.2 ``` ```java package com.myorg; import software.amazon.awscdk.core.Construct; import software.amazon.awscdk.core.Stack; import software.amazon.awscdk.core.StackProps; import com.thonbecker.simplewebsitedeploy.CreateBasicSite; public class MyProjectStack extends Stack { public MyProjectStack(final Construct scope, final String id) { this(scope, id, null); } public MyProjectStack(final Construct scope, final String id, final StackProps props) { super(scope, id, props); CreateBasicSite.Builder.create(this, "test-website") .websiteFolder("./src/build") .indexDoc("index.html") .hostedZone("example.com"); } } ``` ##### Python ```console pip install cdk-simplewebsite-deploy ``` ```python from aws_cdk import Stack from cdk_simplewebsite_deploy import CreateBasicSite from constructs import Construct class MyProjectStack(Stack): def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None: super().__init__(scope, construct_id, **kwargs) CreateBasicSite(self, 'test-website', website_folder='./src/build', index_doc='index.html', hosted_zone='example.com') ``` ### [CreateCloudfrontSite](https://github.com/snappetal/cdk-simplewebsite-deploy/blob/main/API.md#cdk-cloudfront-deploy-createcloudfrontsite) #### Creates a simple website using a CloudFront distribution with a domain hosted in Route 53. ##### Typescript ```console npm install cdk-simplewebsite-deploy ``` ```python import * as cdk from '@aws-cdk/core'; import { CreateCloudfrontSite } from 'cdk-simplewebsite-deploy'; export class PipelineStack extends cdk.Stack { constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) { super(scope, id, props); new CreateCloudfrontSite(stack, 'test-website', { websiteFolder: './src/dist', indexDoc: 'index.html', hostedZone: 'example.com', subDomain: 'www.example.com', }); } } ``` ##### C# ```console dotnet add package ThonBecker.CDK.SimpleWebsiteDeploy ``` ```cs using Amazon.CDK; using ThonBecker.CDK.SimpleWebsiteDeploy; namespace SimpleWebsiteDeploy { public class PipelineStack : Stack { internal PipelineStack(Construct scope, string id, IStackProps props = null) : base(scope, id, props) { new CreateCloudfrontSite(scope, "test-website", new CloudfrontSiteConfiguration() { WebsiteFolder = "./src/build", IndexDoc = "index.html", HostedZone = "example.com", SubDomain = "www.example.com", }); } } } ``` ##### Java ```xml com.thonbecker.simplewebsitedeploy cdk-simplewebsite-deploy 0.4.2 ``` ```java package com.myorg; import software.amazon.awscdk.core.Construct; import software.amazon.awscdk.core.Stack; import software.amazon.awscdk.core.StackProps; import com.thonbecker.simplewebsitedeploy.CreateCloudfrontSite; public class MyProjectStack extends Stack { public MyProjectStack(final Construct scope, final String id) { this(scope, id, null); } public MyProjectStack(final Construct scope, final String id, final StackProps props) { super(scope, id, props); CreateCloudfrontSite.Builder.create(this, "test-website") .websiteFolder("./src/build") .indexDoc("index.html") .hostedZone("example.com") .subDomain("www.example.com"); } } ``` ##### Python ```console pip install cdk-simplewebsite-deploy ``` ```python from aws_cdk import core from cdk_simplewebsite_deploy import CreateCloudfrontSite class MyProjectStack(core.Stack): def __init__(self, scope: core.Construct, construct_id: str, **kwargs) -> None: super().__init__(scope, construct_id, **kwargs) CreateCloudfrontSite(self, 'test-website', website_folder='./src/build', index_doc='index.html', hosted_zone='example.com', sub_domain='www.example.com') ``` ## License Distributed under the [Apache-2.0](./LICENSE) license. %prep %autosetup -n cdk-simplewebsite-deploy-2.0.59 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-cdk-simplewebsite-deploy -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Fri May 05 2023 Python_Bot - 2.0.59-1 - Package Spec generated