formal.ResourceHostname
Explore with Pulumi AI
Registering a Resource Hostname with Formal.
Create ResourceHostname Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ResourceHostname(name: string, args: ResourceHostnameArgs, opts?: CustomResourceOptions);
@overload
def ResourceHostname(resource_name: str,
args: ResourceHostnameArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ResourceHostname(resource_name: str,
opts: Optional[ResourceOptions] = None,
hostname: Optional[str] = None,
resource_id: Optional[str] = None,
name: Optional[str] = None,
termination_protection: Optional[bool] = None)
func NewResourceHostname(ctx *Context, name string, args ResourceHostnameArgs, opts ...ResourceOption) (*ResourceHostname, error)
public ResourceHostname(string name, ResourceHostnameArgs args, CustomResourceOptions? opts = null)
public ResourceHostname(String name, ResourceHostnameArgs args)
public ResourceHostname(String name, ResourceHostnameArgs args, CustomResourceOptions options)
type: formal:ResourceHostname
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ResourceHostnameArgs
- 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 ResourceHostnameArgs
- 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 ResourceHostnameArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ResourceHostnameArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ResourceHostnameArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var resourceHostnameResource = new Pulumi.ResourceHostname("resourceHostnameResource", new()
{
Hostname = "string",
ResourceId = "string",
Name = "string",
TerminationProtection = false,
});
example, err := formal.NewResourceHostname(ctx, "resourceHostnameResource", &formal.ResourceHostnameArgs{
Hostname: pulumi.String("string"),
ResourceId: pulumi.String("string"),
Name: pulumi.String("string"),
TerminationProtection: pulumi.Bool(false),
})
var resourceHostnameResource = new ResourceHostname("resourceHostnameResource", ResourceHostnameArgs.builder()
.hostname("string")
.resourceId("string")
.name("string")
.terminationProtection(false)
.build());
resource_hostname_resource = formal.ResourceHostname("resourceHostnameResource",
hostname="string",
resource_id="string",
name="string",
termination_protection=False)
const resourceHostnameResource = new formal.ResourceHostname("resourceHostnameResource", {
hostname: "string",
resourceId: "string",
name: "string",
terminationProtection: false,
});
type: formal:ResourceHostname
properties:
hostname: string
name: string
resourceId: string
terminationProtection: false
ResourceHostname Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ResourceHostname resource accepts the following input properties:
- Hostname string
- The hostname for this Resource hostname.
- Resource
Id string - The ID of the Resource this hostname is linked to.
- Name string
- The name of this Resource Hostname.
- Termination
Protection bool - If set to true, this resource hostname cannot be deleted.
- Hostname string
- The hostname for this Resource hostname.
- Resource
Id string - The ID of the Resource this hostname is linked to.
- Name string
- The name of this Resource Hostname.
- Termination
Protection bool - If set to true, this resource hostname cannot be deleted.
- hostname String
- The hostname for this Resource hostname.
- resource
Id String - The ID of the Resource this hostname is linked to.
- name String
- The name of this Resource Hostname.
- termination
Protection Boolean - If set to true, this resource hostname cannot be deleted.
- hostname string
- The hostname for this Resource hostname.
- resource
Id string - The ID of the Resource this hostname is linked to.
- name string
- The name of this Resource Hostname.
- termination
Protection boolean - If set to true, this resource hostname cannot be deleted.
- hostname str
- The hostname for this Resource hostname.
- resource_
id str - The ID of the Resource this hostname is linked to.
- name str
- The name of this Resource Hostname.
- termination_
protection bool - If set to true, this resource hostname cannot be deleted.
- hostname String
- The hostname for this Resource hostname.
- resource
Id String - The ID of the Resource this hostname is linked to.
- name String
- The name of this Resource Hostname.
- termination
Protection Boolean - If set to true, this resource hostname cannot be deleted.
Outputs
All input properties are implicitly available as output properties. Additionally, the ResourceHostname resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ResourceHostname Resource
Get an existing ResourceHostname 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?: ResourceHostnameState, opts?: CustomResourceOptions): ResourceHostname
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
hostname: Optional[str] = None,
name: Optional[str] = None,
resource_id: Optional[str] = None,
termination_protection: Optional[bool] = None) -> ResourceHostname
func GetResourceHostname(ctx *Context, name string, id IDInput, state *ResourceHostnameState, opts ...ResourceOption) (*ResourceHostname, error)
public static ResourceHostname Get(string name, Input<string> id, ResourceHostnameState? state, CustomResourceOptions? opts = null)
public static ResourceHostname get(String name, Output<String> id, ResourceHostnameState state, CustomResourceOptions options)
resources: _: type: formal:ResourceHostname get: id: ${id}
- 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.
- Hostname string
- The hostname for this Resource hostname.
- Name string
- The name of this Resource Hostname.
- Resource
Id string - The ID of the Resource this hostname is linked to.
- Termination
Protection bool - If set to true, this resource hostname cannot be deleted.
- Hostname string
- The hostname for this Resource hostname.
- Name string
- The name of this Resource Hostname.
- Resource
Id string - The ID of the Resource this hostname is linked to.
- Termination
Protection bool - If set to true, this resource hostname cannot be deleted.
- hostname String
- The hostname for this Resource hostname.
- name String
- The name of this Resource Hostname.
- resource
Id String - The ID of the Resource this hostname is linked to.
- termination
Protection Boolean - If set to true, this resource hostname cannot be deleted.
- hostname string
- The hostname for this Resource hostname.
- name string
- The name of this Resource Hostname.
- resource
Id string - The ID of the Resource this hostname is linked to.
- termination
Protection boolean - If set to true, this resource hostname cannot be deleted.
- hostname str
- The hostname for this Resource hostname.
- name str
- The name of this Resource Hostname.
- resource_
id str - The ID of the Resource this hostname is linked to.
- termination_
protection bool - If set to true, this resource hostname cannot be deleted.
- hostname String
- The hostname for this Resource hostname.
- name String
- The name of this Resource Hostname.
- resource
Id String - The ID of the Resource this hostname is linked to.
- termination
Protection Boolean - If set to true, this resource hostname cannot be deleted.
Package Details
- Repository
- formal formalco/pulumi-formal
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
formal
Terraform Provider.