Class Source
(experimental) Represents the App Runner service source.
Namespace: Amazon.CDK.AWS.AppRunner.Alpha
Assembly: Amazon.CDK.AWS.AppRunner.Alpha.dll
Syntax (csharp)
public abstract class Source : DeputyBase
Syntax (vb)
Public MustInherit Class Source
Inherits DeputyBase
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.IAM;
var service = new Service(this, "Service", new ServiceProps {
Source = Source.FromEcrPublic(new EcrPublicProps {
ImageConfiguration = new ImageConfiguration { Port = 8000 },
ImageIdentifier = "public.ecr.aws/aws-containers/hello-app-runner:latest"
})
});
service.AddToRolePolicy(new PolicyStatement(new PolicyStatementProps {
Effect = Effect.ALLOW,
Actions = new [] { "s3:GetObject" },
Resources = new [] { "*" }
}));
Synopsis
Constructors
Source() | |
Source(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Source(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
Bind(Construct) | (experimental) Called when the Job is initialized to allow this object to bind. |
FromAsset(IAssetProps) | (experimental) Source from local assets. |
FromEcr(IEcrProps) | (experimental) Source from the ECR repository. |
FromEcrPublic(IEcrPublicProps) | (experimental) Source from the ECR Public repository. |
FromGitHub(IGithubRepositoryProps) | (experimental) Source from the GitHub repository. |
Constructors
Source()
protected Source()
Remarks
Stability: Experimental
Source(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected Source(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
Source(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected Source(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
Bind(Construct)
(experimental) Called when the Job is initialized to allow this object to bind.
public abstract ISourceConfig Bind(Construct scope)
Parameters
- scope Constructs.Construct
Returns
Remarks
Stability: Experimental
FromAsset(IAssetProps)
(experimental) Source from local assets.
public static AssetSource FromAsset(IAssetProps props)
Parameters
- props IAssetProps
Returns
Remarks
Stability: Experimental
FromEcr(IEcrProps)
(experimental) Source from the ECR repository.
public static EcrSource FromEcr(IEcrProps props)
Parameters
- props IEcrProps
Returns
Remarks
Stability: Experimental
FromEcrPublic(IEcrPublicProps)
(experimental) Source from the ECR Public repository.
public static EcrPublicSource FromEcrPublic(IEcrPublicProps props)
Parameters
- props IEcrPublicProps
Returns
Remarks
Stability: Experimental
FromGitHub(IGithubRepositoryProps)
(experimental) Source from the GitHub repository.
public static GithubSource FromGitHub(IGithubRepositoryProps props)
Parameters
- props IGithubRepositoryProps
Returns
Remarks
Stability: Experimental