Class Service
(experimental) The App Runner Service.
Inherited Members
Namespace: Amazon.CDK.AWS.AppRunner
Assembly: Amazon.CDK.AWS.AppRunner.dll
Syntax (csharp)
public class Service : Resource, IResource, IConstruct, IDependable
Syntax (vb)
Public Class Service
Inherits Resource
Implements IResource, IConstruct, IDependable
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.Ecr.Assets;
var imageAsset = new DockerImageAsset(this, "ImageAssets", new DockerImageAssetProps {
Directory = Join(__dirname, "./docker.assets")
});
new Service(this, "Service", new ServiceProps {
Source = Source.FromAsset(new AssetProps {
ImageConfiguration = new ImageConfiguration { Port = 8000 },
Asset = imageAsset
})
});
Synopsis
Constructors
Service(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Service(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Service(Construct, String, IServiceProps) |
Properties
ServiceArn | (experimental) The ARN of the Service. |
ServiceId | (experimental) The ID of the Service. |
ServiceName | (experimental) The name of the service. |
ServiceStatus | (experimental) The status of the Service. |
ServiceUrl | (experimental) The URL of the Service. |
Methods
FromServiceAttributes(Construct, String, IServiceAttributes) | (experimental) Import from service attributes. |
FromServiceName(Construct, String, String) | (experimental) Import from service name. |
Constructors
Service(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected Service(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
Service(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected Service(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Service(Construct, String, IServiceProps)
public Service(Construct scope, string id, IServiceProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IServiceProps
Remarks
Stability: Experimental
Properties
ServiceArn
(experimental) The ARN of the Service.
public virtual string ServiceArn { get; }
Property Value
System.String
Remarks
Stability: Experimental
Attribute: true
ServiceId
(experimental) The ID of the Service.
public virtual string ServiceId { get; }
Property Value
System.String
Remarks
Stability: Experimental
Attribute: true
ServiceName
(experimental) The name of the service.
public virtual string ServiceName { get; }
Property Value
System.String
Remarks
Stability: Experimental
Attribute: true
ServiceStatus
(experimental) The status of the Service.
public virtual string ServiceStatus { get; }
Property Value
System.String
Remarks
Stability: Experimental
Attribute: true
ServiceUrl
(experimental) The URL of the Service.
public virtual string ServiceUrl { get; }
Property Value
System.String
Remarks
Stability: Experimental
Attribute: true
Methods
FromServiceAttributes(Construct, String, IServiceAttributes)
(experimental) Import from service attributes.
public static IService FromServiceAttributes(Construct scope, string id, IServiceAttributes attrs)
Parameters
- scope Constructs.Construct
- id System.String
- attrs IServiceAttributes
Returns
Remarks
Stability: Experimental
FromServiceName(Construct, String, String)
(experimental) Import from service name.
public static IService FromServiceName(Construct scope, string id, string serviceName)
Parameters
- scope Constructs.Construct
- id System.String
- serviceName System.String
Returns
Remarks
Stability: Experimental