alicloud.ga.Domain
Explore with Pulumi AI
Provides a Ga Domain resource.
For information about Ga Domain and how to use it, see What is Domain.
NOTE: Available since v1.197.0.
Example Usage
Basic Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var defaultAccelerator = new AliCloud.Ga.Accelerator("defaultAccelerator", new()
{
Duration = 1,
AutoUseCoupon = true,
Spec = "1",
});
var defaultDomain = new AliCloud.Ga.Domain("defaultDomain", new()
{
AcceleratedDomain = "changes.com.cn",
AcceleratorId = defaultAccelerator.Id,
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ga"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
defaultAccelerator, err := ga.NewAccelerator(ctx, "defaultAccelerator", &ga.AcceleratorArgs{
Duration: pulumi.Int(1),
AutoUseCoupon: pulumi.Bool(true),
Spec: pulumi.String("1"),
})
if err != nil {
return err
}
_, err = ga.NewDomain(ctx, "defaultDomain", &ga.DomainArgs{
Domain: pulumi.String("changes.com.cn"),
AcceleratorId: defaultAccelerator.ID(),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ga.Accelerator;
import com.pulumi.alicloud.ga.AcceleratorArgs;
import com.pulumi.alicloud.ga.Domain;
import com.pulumi.alicloud.ga.DomainArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var defaultAccelerator = new Accelerator("defaultAccelerator", AcceleratorArgs.builder()
.duration(1)
.autoUseCoupon(true)
.spec("1")
.build());
var defaultDomain = new Domain("defaultDomain", DomainArgs.builder()
.domain("changes.com.cn")
.acceleratorId(defaultAccelerator.id())
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
default_accelerator = alicloud.ga.Accelerator("defaultAccelerator",
duration=1,
auto_use_coupon=True,
spec="1")
default_domain = alicloud.ga.Domain("defaultDomain",
domain="changes.com.cn",
accelerator_id=default_accelerator.id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const defaultAccelerator = new alicloud.ga.Accelerator("defaultAccelerator", {
duration: 1,
autoUseCoupon: true,
spec: "1",
});
const defaultDomain = new alicloud.ga.Domain("defaultDomain", {
domain: "changes.com.cn",
acceleratorId: defaultAccelerator.id,
});
resources:
defaultAccelerator:
type: alicloud:ga:Accelerator
properties:
duration: 1
autoUseCoupon: true
spec: '1'
defaultDomain:
type: alicloud:ga:Domain
properties:
domain: changes.com.cn
acceleratorId: ${defaultAccelerator.id}
Create Domain Resource
new Domain(name: string, args: DomainArgs, opts?: CustomResourceOptions);
@overload
def Domain(resource_name: str,
opts: Optional[ResourceOptions] = None,
accelerator_id: Optional[str] = None,
domain: Optional[str] = None)
@overload
def Domain(resource_name: str,
args: DomainArgs,
opts: Optional[ResourceOptions] = None)
func NewDomain(ctx *Context, name string, args DomainArgs, opts ...ResourceOption) (*Domain, error)
public Domain(string name, DomainArgs args, CustomResourceOptions? opts = null)
public Domain(String name, DomainArgs args)
public Domain(String name, DomainArgs args, CustomResourceOptions options)
type: alicloud:ga:Domain
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DomainArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DomainArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DomainArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DomainArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DomainArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Domain Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Domain resource accepts the following input properties:
- Accelerated
Domain string The accelerated domain name to be added. only top-level domain names are supported, such as 'example.com'.
- Accelerator
Id string The ID of the global acceleration instance.
- Accelerator
Id string The ID of the global acceleration instance.
- Domain string
The accelerated domain name to be added. only top-level domain names are supported, such as 'example.com'.
- accelerator
Id String The ID of the global acceleration instance.
- domain String
The accelerated domain name to be added. only top-level domain names are supported, such as 'example.com'.
- accelerator
Id string The ID of the global acceleration instance.
- domain string
The accelerated domain name to be added. only top-level domain names are supported, such as 'example.com'.
- accelerator_
id str The ID of the global acceleration instance.
- domain str
The accelerated domain name to be added. only top-level domain names are supported, such as 'example.com'.
- accelerator
Id String The ID of the global acceleration instance.
- domain String
The accelerated domain name to be added. only top-level domain names are supported, such as 'example.com'.
Outputs
All input properties are implicitly available as output properties. Additionally, the Domain resource produces the following output properties:
Look up Existing Domain Resource
Get an existing Domain resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DomainState, opts?: CustomResourceOptions): Domain
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
accelerator_id: Optional[str] = None,
domain: Optional[str] = None,
status: Optional[str] = None) -> Domain
func GetDomain(ctx *Context, name string, id IDInput, state *DomainState, opts ...ResourceOption) (*Domain, error)
public static Domain Get(string name, Input<string> id, DomainState? state, CustomResourceOptions? opts = null)
public static Domain get(String name, Output<String> id, DomainState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Accelerated
Domain string The accelerated domain name to be added. only top-level domain names are supported, such as 'example.com'.
- Accelerator
Id string The ID of the global acceleration instance.
- Status string
The status of the resource
- Accelerator
Id string The ID of the global acceleration instance.
- Domain string
The accelerated domain name to be added. only top-level domain names are supported, such as 'example.com'.
- Status string
The status of the resource
- accelerator
Id String The ID of the global acceleration instance.
- domain String
The accelerated domain name to be added. only top-level domain names are supported, such as 'example.com'.
- status String
The status of the resource
- accelerator
Id string The ID of the global acceleration instance.
- domain string
The accelerated domain name to be added. only top-level domain names are supported, such as 'example.com'.
- status string
The status of the resource
- accelerator_
id str The ID of the global acceleration instance.
- domain str
The accelerated domain name to be added. only top-level domain names are supported, such as 'example.com'.
- status str
The status of the resource
- accelerator
Id String The ID of the global acceleration instance.
- domain String
The accelerated domain name to be added. only top-level domain names are supported, such as 'example.com'.
- status String
The status of the resource
Import
Ga Domain can be imported using the id, e.g.
$ pulumi import alicloud:ga/domain:Domain example <accelerator_id>:<domain>
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.