oci.FleetAppsManagement.FleetProperty
Explore with Pulumi AI
This resource provides the Fleet Property resource in Oracle Cloud Infrastructure Fleet Apps Management service.
Add an existing global property to a fleet in Fleet Application Management.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testFleetProperty = new oci.fleetappsmanagement.FleetProperty("test_fleet_property", {
compartmentId: compartmentId,
fleetId: testFleet.id,
propertyId: testProperty.id,
value: fleetPropertyValue,
});
import pulumi
import pulumi_oci as oci
test_fleet_property = oci.fleet_apps_management.FleetProperty("test_fleet_property",
compartment_id=compartment_id,
fleet_id=test_fleet["id"],
property_id=test_property["id"],
value=fleet_property_value)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/fleetappsmanagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := fleetappsmanagement.NewFleetProperty(ctx, "test_fleet_property", &fleetappsmanagement.FleetPropertyArgs{
CompartmentId: pulumi.Any(compartmentId),
FleetId: pulumi.Any(testFleet.Id),
PropertyId: pulumi.Any(testProperty.Id),
Value: pulumi.Any(fleetPropertyValue),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testFleetProperty = new Oci.FleetAppsManagement.FleetProperty("test_fleet_property", new()
{
CompartmentId = compartmentId,
FleetId = testFleet.Id,
PropertyId = testProperty.Id,
Value = fleetPropertyValue,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.FleetAppsManagement.FleetProperty;
import com.pulumi.oci.FleetAppsManagement.FleetPropertyArgs;
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 testFleetProperty = new FleetProperty("testFleetProperty", FleetPropertyArgs.builder()
.compartmentId(compartmentId)
.fleetId(testFleet.id())
.propertyId(testProperty.id())
.value(fleetPropertyValue)
.build());
}
}
resources:
testFleetProperty:
type: oci:FleetAppsManagement:FleetProperty
name: test_fleet_property
properties:
compartmentId: ${compartmentId}
fleetId: ${testFleet.id}
propertyId: ${testProperty.id}
value: ${fleetPropertyValue}
Create FleetProperty Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FleetProperty(name: string, args: FleetPropertyArgs, opts?: CustomResourceOptions);
@overload
def FleetProperty(resource_name: str,
args: FleetPropertyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def FleetProperty(resource_name: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
fleet_id: Optional[str] = None,
property_id: Optional[str] = None,
value: Optional[str] = None)
func NewFleetProperty(ctx *Context, name string, args FleetPropertyArgs, opts ...ResourceOption) (*FleetProperty, error)
public FleetProperty(string name, FleetPropertyArgs args, CustomResourceOptions? opts = null)
public FleetProperty(String name, FleetPropertyArgs args)
public FleetProperty(String name, FleetPropertyArgs args, CustomResourceOptions options)
type: oci:FleetAppsManagement:FleetProperty
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 FleetPropertyArgs
- 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 FleetPropertyArgs
- 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 FleetPropertyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FleetPropertyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FleetPropertyArgs
- 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 fleetPropertyResource = new Oci.FleetAppsManagement.FleetProperty("fleetPropertyResource", new()
{
CompartmentId = "string",
FleetId = "string",
PropertyId = "string",
Value = "string",
});
example, err := FleetAppsManagement.NewFleetProperty(ctx, "fleetPropertyResource", &FleetAppsManagement.FleetPropertyArgs{
CompartmentId: pulumi.String("string"),
FleetId: pulumi.String("string"),
PropertyId: pulumi.String("string"),
Value: pulumi.String("string"),
})
var fleetPropertyResource = new FleetProperty("fleetPropertyResource", FleetPropertyArgs.builder()
.compartmentId("string")
.fleetId("string")
.propertyId("string")
.value("string")
.build());
fleet_property_resource = oci.fleet_apps_management.FleetProperty("fleetPropertyResource",
compartment_id="string",
fleet_id="string",
property_id="string",
value="string")
const fleetPropertyResource = new oci.fleetappsmanagement.FleetProperty("fleetPropertyResource", {
compartmentId: "string",
fleetId: "string",
propertyId: "string",
value: "string",
});
type: oci:FleetAppsManagement:FleetProperty
properties:
compartmentId: string
fleetId: string
propertyId: string
value: string
FleetProperty 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 FleetProperty resource accepts the following input properties:
- Compartment
Id string - Tenancy OCID
- Fleet
Id string - Unique Fleet identifier.
- Property
Id string - OCID referring to global level metadata property.
- Value string
(Updatable) Value of the Property.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Compartment
Id string - Tenancy OCID
- Fleet
Id string - Unique Fleet identifier.
- Property
Id string - OCID referring to global level metadata property.
- Value string
(Updatable) Value of the Property.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- compartment
Id String - Tenancy OCID
- fleet
Id String - Unique Fleet identifier.
- property
Id String - OCID referring to global level metadata property.
- value String
(Updatable) Value of the Property.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- compartment
Id string - Tenancy OCID
- fleet
Id string - Unique Fleet identifier.
- property
Id string - OCID referring to global level metadata property.
- value string
(Updatable) Value of the Property.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- compartment_
id str - Tenancy OCID
- fleet_
id str - Unique Fleet identifier.
- property_
id str - OCID referring to global level metadata property.
- value str
(Updatable) Value of the Property.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- compartment
Id String - Tenancy OCID
- fleet
Id String - Unique Fleet identifier.
- property
Id String - OCID referring to global level metadata property.
- value String
(Updatable) Value of the Property.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Outputs
All input properties are implicitly available as output properties. Additionally, the FleetProperty resource produces the following output properties:
- Allowed
Values List<string> - Values of the property (must be a single value if selectionType = 'SINGLE_CHOICE').
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource
- Id string
- The provider-assigned unique ID for this managed resource.
- Selection
Type string - Text selection of the property.
- State string
- The current state of the FleetProperty.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time this resource was created. An RFC3339 formatted datetime string.
- Time
Updated string - The time this resource was last updated. An RFC3339 formatted datetime string.
- Value
Type string - Format of the value.
- Allowed
Values []string - Values of the property (must be a single value if selectionType = 'SINGLE_CHOICE').
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource
- Id string
- The provider-assigned unique ID for this managed resource.
- Selection
Type string - Text selection of the property.
- State string
- The current state of the FleetProperty.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time this resource was created. An RFC3339 formatted datetime string.
- Time
Updated string - The time this resource was last updated. An RFC3339 formatted datetime string.
- Value
Type string - Format of the value.
- allowed
Values List<String> - Values of the property (must be a single value if selectionType = 'SINGLE_CHOICE').
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource
- id String
- The provider-assigned unique ID for this managed resource.
- selection
Type String - Text selection of the property.
- state String
- The current state of the FleetProperty.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time this resource was created. An RFC3339 formatted datetime string.
- time
Updated String - The time this resource was last updated. An RFC3339 formatted datetime string.
- value
Type String - Format of the value.
- allowed
Values string[] - Values of the property (must be a single value if selectionType = 'SINGLE_CHOICE').
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource
- id string
- The provider-assigned unique ID for this managed resource.
- selection
Type string - Text selection of the property.
- state string
- The current state of the FleetProperty.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The time this resource was created. An RFC3339 formatted datetime string.
- time
Updated string - The time this resource was last updated. An RFC3339 formatted datetime string.
- value
Type string - Format of the value.
- allowed_
values Sequence[str] - Values of the property (must be a single value if selectionType = 'SINGLE_CHOICE').
- display_
name str - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource
- id str
- The provider-assigned unique ID for this managed resource.
- selection_
type str - Text selection of the property.
- state str
- The current state of the FleetProperty.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time_
created str - The time this resource was created. An RFC3339 formatted datetime string.
- time_
updated str - The time this resource was last updated. An RFC3339 formatted datetime string.
- value_
type str - Format of the value.
- allowed
Values List<String> - Values of the property (must be a single value if selectionType = 'SINGLE_CHOICE').
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource
- id String
- The provider-assigned unique ID for this managed resource.
- selection
Type String - Text selection of the property.
- state String
- The current state of the FleetProperty.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time this resource was created. An RFC3339 formatted datetime string.
- time
Updated String - The time this resource was last updated. An RFC3339 formatted datetime string.
- value
Type String - Format of the value.
Look up Existing FleetProperty Resource
Get an existing FleetProperty 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?: FleetPropertyState, opts?: CustomResourceOptions): FleetProperty
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allowed_values: Optional[Sequence[str]] = None,
compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
fleet_id: Optional[str] = None,
property_id: Optional[str] = None,
selection_type: Optional[str] = None,
state: Optional[str] = None,
system_tags: Optional[Mapping[str, str]] = None,
time_created: Optional[str] = None,
time_updated: Optional[str] = None,
value: Optional[str] = None,
value_type: Optional[str] = None) -> FleetProperty
func GetFleetProperty(ctx *Context, name string, id IDInput, state *FleetPropertyState, opts ...ResourceOption) (*FleetProperty, error)
public static FleetProperty Get(string name, Input<string> id, FleetPropertyState? state, CustomResourceOptions? opts = null)
public static FleetProperty get(String name, Output<String> id, FleetPropertyState state, CustomResourceOptions options)
resources: _: type: oci:FleetAppsManagement:FleetProperty 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.
- Allowed
Values List<string> - Values of the property (must be a single value if selectionType = 'SINGLE_CHOICE').
- Compartment
Id string - Tenancy OCID
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource
- Fleet
Id string - Unique Fleet identifier.
- Property
Id string - OCID referring to global level metadata property.
- Selection
Type string - Text selection of the property.
- State string
- The current state of the FleetProperty.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time this resource was created. An RFC3339 formatted datetime string.
- Time
Updated string - The time this resource was last updated. An RFC3339 formatted datetime string.
- Value string
(Updatable) Value of the Property.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Value
Type string - Format of the value.
- Allowed
Values []string - Values of the property (must be a single value if selectionType = 'SINGLE_CHOICE').
- Compartment
Id string - Tenancy OCID
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource
- Fleet
Id string - Unique Fleet identifier.
- Property
Id string - OCID referring to global level metadata property.
- Selection
Type string - Text selection of the property.
- State string
- The current state of the FleetProperty.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time this resource was created. An RFC3339 formatted datetime string.
- Time
Updated string - The time this resource was last updated. An RFC3339 formatted datetime string.
- Value string
(Updatable) Value of the Property.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Value
Type string - Format of the value.
- allowed
Values List<String> - Values of the property (must be a single value if selectionType = 'SINGLE_CHOICE').
- compartment
Id String - Tenancy OCID
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource
- fleet
Id String - Unique Fleet identifier.
- property
Id String - OCID referring to global level metadata property.
- selection
Type String - Text selection of the property.
- state String
- The current state of the FleetProperty.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time this resource was created. An RFC3339 formatted datetime string.
- time
Updated String - The time this resource was last updated. An RFC3339 formatted datetime string.
- value String
(Updatable) Value of the Property.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- value
Type String - Format of the value.
- allowed
Values string[] - Values of the property (must be a single value if selectionType = 'SINGLE_CHOICE').
- compartment
Id string - Tenancy OCID
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource
- fleet
Id string - Unique Fleet identifier.
- property
Id string - OCID referring to global level metadata property.
- selection
Type string - Text selection of the property.
- state string
- The current state of the FleetProperty.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The time this resource was created. An RFC3339 formatted datetime string.
- time
Updated string - The time this resource was last updated. An RFC3339 formatted datetime string.
- value string
(Updatable) Value of the Property.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- value
Type string - Format of the value.
- allowed_
values Sequence[str] - Values of the property (must be a single value if selectionType = 'SINGLE_CHOICE').
- compartment_
id str - Tenancy OCID
- display_
name str - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource
- fleet_
id str - Unique Fleet identifier.
- property_
id str - OCID referring to global level metadata property.
- selection_
type str - Text selection of the property.
- state str
- The current state of the FleetProperty.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time_
created str - The time this resource was created. An RFC3339 formatted datetime string.
- time_
updated str - The time this resource was last updated. An RFC3339 formatted datetime string.
- value str
(Updatable) Value of the Property.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- value_
type str - Format of the value.
- allowed
Values List<String> - Values of the property (must be a single value if selectionType = 'SINGLE_CHOICE').
- compartment
Id String - Tenancy OCID
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource
- fleet
Id String - Unique Fleet identifier.
- property
Id String - OCID referring to global level metadata property.
- selection
Type String - Text selection of the property.
- state String
- The current state of the FleetProperty.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time this resource was created. An RFC3339 formatted datetime string.
- time
Updated String - The time this resource was last updated. An RFC3339 formatted datetime string.
- value String
(Updatable) Value of the Property.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- value
Type String - Format of the value.
Import
Import is not supported for this resource.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.