cloudfoundry.DefaultAsg
Explore with Pulumi AI
Import
The current Default Asg can be imported using the name
(either running
or staging
constant) e.g.
bash
$ pulumi import cloudfoundry:index/defaultAsg:DefaultAsg running <running/staging>
Create DefaultAsg Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DefaultAsg(name: string, args: DefaultAsgArgs, opts?: CustomResourceOptions);
@overload
def DefaultAsg(resource_name: str,
args: DefaultAsgArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DefaultAsg(resource_name: str,
opts: Optional[ResourceOptions] = None,
asgs: Optional[Sequence[str]] = None,
default_asg_id: Optional[str] = None,
name: Optional[str] = None)
func NewDefaultAsg(ctx *Context, name string, args DefaultAsgArgs, opts ...ResourceOption) (*DefaultAsg, error)
public DefaultAsg(string name, DefaultAsgArgs args, CustomResourceOptions? opts = null)
public DefaultAsg(String name, DefaultAsgArgs args)
public DefaultAsg(String name, DefaultAsgArgs args, CustomResourceOptions options)
type: cloudfoundry:DefaultAsg
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 DefaultAsgArgs
- 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 DefaultAsgArgs
- 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 DefaultAsgArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DefaultAsgArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DefaultAsgArgs
- 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 defaultAsgResource = new Cloudfoundry.DefaultAsg("defaultAsgResource", new()
{
Asgs = new[]
{
"string",
},
DefaultAsgId = "string",
Name = "string",
});
example, err := cloudfoundry.NewDefaultAsg(ctx, "defaultAsgResource", &cloudfoundry.DefaultAsgArgs{
Asgs: pulumi.StringArray{
pulumi.String("string"),
},
DefaultAsgId: pulumi.String("string"),
Name: pulumi.String("string"),
})
var defaultAsgResource = new DefaultAsg("defaultAsgResource", DefaultAsgArgs.builder()
.asgs("string")
.defaultAsgId("string")
.name("string")
.build());
default_asg_resource = cloudfoundry.DefaultAsg("defaultAsgResource",
asgs=["string"],
default_asg_id="string",
name="string")
const defaultAsgResource = new cloudfoundry.DefaultAsg("defaultAsgResource", {
asgs: ["string"],
defaultAsgId: "string",
name: "string",
});
type: cloudfoundry:DefaultAsg
properties:
asgs:
- string
defaultAsgId: string
name: string
DefaultAsg 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 DefaultAsg resource accepts the following input properties:
- Asgs List<string>
- A list of references to application security groups IDs.
- Default
Asg stringId - Name string
- This should be one of
running
orstaging
- Asgs []string
- A list of references to application security groups IDs.
- Default
Asg stringId - Name string
- This should be one of
running
orstaging
- asgs List<String>
- A list of references to application security groups IDs.
- default
Asg StringId - name String
- This should be one of
running
orstaging
- asgs string[]
- A list of references to application security groups IDs.
- default
Asg stringId - name string
- This should be one of
running
orstaging
- asgs Sequence[str]
- A list of references to application security groups IDs.
- default_
asg_ strid - name str
- This should be one of
running
orstaging
- asgs List<String>
- A list of references to application security groups IDs.
- default
Asg StringId - name String
- This should be one of
running
orstaging
Outputs
All input properties are implicitly available as output properties. Additionally, the DefaultAsg 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 DefaultAsg Resource
Get an existing DefaultAsg 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?: DefaultAsgState, opts?: CustomResourceOptions): DefaultAsg
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
asgs: Optional[Sequence[str]] = None,
default_asg_id: Optional[str] = None,
name: Optional[str] = None) -> DefaultAsg
func GetDefaultAsg(ctx *Context, name string, id IDInput, state *DefaultAsgState, opts ...ResourceOption) (*DefaultAsg, error)
public static DefaultAsg Get(string name, Input<string> id, DefaultAsgState? state, CustomResourceOptions? opts = null)
public static DefaultAsg get(String name, Output<String> id, DefaultAsgState state, CustomResourceOptions options)
resources: _: type: cloudfoundry:DefaultAsg 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.
- Asgs List<string>
- A list of references to application security groups IDs.
- Default
Asg stringId - Name string
- This should be one of
running
orstaging
- Asgs []string
- A list of references to application security groups IDs.
- Default
Asg stringId - Name string
- This should be one of
running
orstaging
- asgs List<String>
- A list of references to application security groups IDs.
- default
Asg StringId - name String
- This should be one of
running
orstaging
- asgs string[]
- A list of references to application security groups IDs.
- default
Asg stringId - name string
- This should be one of
running
orstaging
- asgs Sequence[str]
- A list of references to application security groups IDs.
- default_
asg_ strid - name str
- This should be one of
running
orstaging
- asgs List<String>
- A list of references to application security groups IDs.
- default
Asg StringId - name String
- This should be one of
running
orstaging
Package Details
- Repository
- cloudfoundry cloudfoundry-community/terraform-provider-cloudfoundry
- License
- Notes
- This Pulumi package is based on the
cloudfoundry
Terraform Provider.