AwsGlobalaccelerator
Service-level AWS Global Accelerator component.
Remarks
The component manages a standard Global Accelerator, its TCP listeners, and regional ALB endpoint groups. It does not manage custom-routing accelerators.
Naming:
- Root type
jobcloud:aws:AwsGlobalacceleratorhas capabilityglobal-acceleratorand shared logical/provider identityargs.name; target${env}-${projectHash}-global-accelerator-${sanitiseNamePart(args.name)}. aws:globalaccelerator/accelerator:Acceleratorhas tuple[args.name]; target${env}-${projectHash}-${sanitiseNamePart(args.name)}. Its providernameusesstackAndPurposethroughbuildAwsNameFromLiteralCamelCasePurpose, producing${env}-${projectHash}-<purpose>and restrictingpurposeto 51 characters for the AWS 64-character limit.- Parent
jobcloud:aws:AwsGlobalacceleratorcreatesaws:globalaccelerator/listener:Listenerwith tuple[args.name, listener map key], andaws:globalaccelerator/endpointGroup:EndpointGroupwith tuple[args.name, listener map key, endpoint-group map key]. Both are safe initial identities, and their groups perform collection-wide collision preflight. - Listener and endpoint-group provider identifiers are provider-generated; no provider
nameis set.
Example
import { AwsGlobalaccelerator } from '@jobcloud/aws-global-accelerator';
const accelerator = new AwsGlobalaccelerator({
name: 'publicIngress',
allowInternetExposure: true,
listeners: {
https: {
protocol: 'TCP',
portRanges: [{ fromPort: 443, toPort: 443 }],
endpointGroups: {
euWest1: {
region: 'eu-west-1',
endpoints: { application: { albName: 'application-alb' } },
},
},
},
},
});Constructors
new AwsGlobalaccelerator(
args: AwsGlobalacceleratorArgs,
options?: ComponentResourceOptions,
): AwsGlobalaccelerator
Parameters
args(AwsGlobalacceleratorArgs)options(ComponentResourceOptions, optional)
Returns
AwsGlobalaccelerator
Hierarchy
ComponentResourceAwsGlobalaccelerator
Properties
acceleratorArn: Output<string>
Managed accelerator ARN.
dnsName: Output<string>
Managed accelerator DNS name.
dualStackDnsName: Output<string>
Managed accelerator dual-stack DNS name.
endpointGroupArnsByKey: Record<string, pulumi.Output<string>>
Endpoint-group ARNs keyed as <listener key>.<endpoint-group key>.
hostedZoneId: Output<string>
Route53 hosted-zone ID for accelerator alias records.
ipSets: Output<AcceleratorIpSet[]>
Allocated accelerator IP sets.
listenerArnsByKey: Record<string, pulumi.Output<string>>
Listener ARNs keyed by listener input identity.
urn: Output<string>
Inherited from urn
The stable logical URN used to distinctly address a resource, both before and after deployments.
Methods
getData(): Promise<any>
Inherited from getData
Retrieves the data produces by initialize. The data is immediately available in a derived class's constructor after the super(...) call to ComponentResource.
Returns
Promise<any>
getProvider(moduleMember: string): ProviderResource | undefined
Inherited from getProvider
Returns the provider for the given module member, if one exists.
Parameters
moduleMember(string)
Returns
ProviderResource | undefined
initialize(
args: Inputs,
opts?: ComponentResourceOptions,
name?: string,
type?: string,
): Promise<any>
Inherited from initialize
Can be overridden by a subclass to asynchronously initialize data for this component automatically when constructed. The data will be available immediately for subclass constructors to use. To access the data use getData.
Parameters
args(Inputs)opts(ComponentResourceOptions, optional)name(string, optional)type(string, optional)
Returns
Promise<any>
registerOutputs(
outputs?: Inputs | Promise<Inputs> | Output<Inputs>,
): void
Inherited from registerOutputs
Registers synthetic outputs that a component has initialized, usually by allocating other child sub-resources and propagating their resulting property values.
Component resources can call this at the end of their constructor to indicate that they are done creating child resources. This is not strictly necessary as this will automatically be called after the initialize method completes.
Parameters
outputs(Inputs | Promise<Inputs> | Output<Inputs>, optional)
Returns
void
Static Methods
isInstance(obj: any): obj is ComponentResource<any>
Inherited from isInstance
Returns true if the given object is a CustomResource. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
Parameters
obj(any)
Returns
obj is ComponentResource<any>