1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. FleetAppsManagement
  5. Fleet
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.FleetAppsManagement.Fleet

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    This resource provides the Fleet resource in Oracle Cloud Infrastructure Fleet Apps Management service.

    Creates a new fleet instance that includes fleet resources and properties. For more information, please see the documentation.

    Example Usage

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    resources:
      testFleet:
        type: oci:FleetAppsManagement:Fleet
        name: test_fleet
        properties:
          compartmentId: ${compartmentId}
          fleetType: ${fleetFleetType}
          applicationType: ${fleetApplicationType}
          definedTags:
            foo-namespace.bar-key: value
          description: ${fleetDescription}
          displayName: ${fleetDisplayName}
          environmentType: ${fleetEnvironmentType}
          freeformTags:
            bar-key: value
          groupType: ${fleetGroupType}
          isTargetAutoConfirm: ${fleetIsTargetAutoConfirm}
          notificationPreferences:
            compartmentId: ${compartmentId}
            topicId: ${testNotificationTopic.id}
            preferences:
              onJobFailure: ${fleetNotificationPreferencesPreferencesOnJobFailure}
              onTopologyModification: ${fleetNotificationPreferencesPreferencesOnTopologyModification}
              onUpcomingSchedule: ${fleetNotificationPreferencesPreferencesOnUpcomingSchedule}
          products: ${fleetProducts}
          resourceSelectionType: ${fleetResourceSelectionType}
          resources:
            - compartmentId: ${compartmentId}
              resourceId: ${testResource.id}
              tenancyId: ${testTenancy.id}
              fleetResourceType: ${fleetResourcesFleetResourceType}
          ruleSelectionCriteria:
            matchCondition: ${fleetRuleSelectionCriteriaMatchCondition}
            rules:
              - compartmentId: ${compartmentId}
                conditions:
                  - attrGroup: ${fleetRuleSelectionCriteriaRulesConditionsAttrGroup}
                    attrKey: ${fleetRuleSelectionCriteriaRulesConditionsAttrKey}
                    attrValue: ${fleetRuleSelectionCriteriaRulesConditionsAttrValue}
                resourceCompartmentId: ${testCompartment.id}
                basis: ${fleetRuleSelectionCriteriaRulesBasis}
    

    Create Fleet Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Fleet(name: string, args: FleetArgs, opts?: CustomResourceOptions);
    @overload
    def Fleet(resource_name: str,
              args: FleetArgs,
              opts: Optional[ResourceOptions] = None)
    
    @overload
    def Fleet(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              fleet_type: Optional[str] = None,
              compartment_id: Optional[str] = None,
              description: Optional[str] = None,
              application_type: Optional[str] = None,
              display_name: Optional[str] = None,
              environment_type: Optional[str] = None,
              defined_tags: Optional[Mapping[str, str]] = None,
              freeform_tags: Optional[Mapping[str, str]] = None,
              group_type: Optional[str] = None,
              is_target_auto_confirm: Optional[bool] = None,
              notification_preferences: Optional[_fleetappsmanagement.FleetNotificationPreferencesArgs] = None,
              products: Optional[Sequence[str]] = None,
              resource_selection_type: Optional[str] = None,
              rule_selection_criteria: Optional[_fleetappsmanagement.FleetRuleSelectionCriteriaArgs] = None)
    func NewFleet(ctx *Context, name string, args FleetArgs, opts ...ResourceOption) (*Fleet, error)
    public Fleet(string name, FleetArgs args, CustomResourceOptions? opts = null)
    public Fleet(String name, FleetArgs args)
    public Fleet(String name, FleetArgs args, CustomResourceOptions options)
    
    type: oci:FleetAppsManagement:Fleet
    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 FleetArgs
    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 FleetArgs
    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 FleetArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FleetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FleetArgs
    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 fleetResource = new Oci.FleetAppsManagement.Fleet("fleetResource", new()
    {
        FleetType = "string",
        CompartmentId = "string",
        Description = "string",
        ApplicationType = "string",
        DisplayName = "string",
        EnvironmentType = "string",
        DefinedTags = 
        {
            { "string", "string" },
        },
        FreeformTags = 
        {
            { "string", "string" },
        },
        GroupType = "string",
        IsTargetAutoConfirm = false,
        NotificationPreferences = new Oci.FleetAppsManagement.Inputs.FleetNotificationPreferencesArgs
        {
            CompartmentId = "string",
            TopicId = "string",
            Preferences = new Oci.FleetAppsManagement.Inputs.FleetNotificationPreferencesPreferencesArgs
            {
                OnJobFailure = false,
                OnTopologyModification = false,
                OnUpcomingSchedule = false,
            },
        },
        Products = new[]
        {
            "string",
        },
        ResourceSelectionType = "string",
        RuleSelectionCriteria = new Oci.FleetAppsManagement.Inputs.FleetRuleSelectionCriteriaArgs
        {
            MatchCondition = "string",
            Rules = new[]
            {
                new Oci.FleetAppsManagement.Inputs.FleetRuleSelectionCriteriaRuleArgs
                {
                    CompartmentId = "string",
                    Conditions = new[]
                    {
                        new Oci.FleetAppsManagement.Inputs.FleetRuleSelectionCriteriaRuleConditionArgs
                        {
                            AttrGroup = "string",
                            AttrKey = "string",
                            AttrValue = "string",
                        },
                    },
                    ResourceCompartmentId = "string",
                    Basis = "string",
                },
            },
        },
    });
    
    example, err := FleetAppsManagement.NewFleet(ctx, "fleetResource", &FleetAppsManagement.FleetArgs{
    	FleetType:       pulumi.String("string"),
    	CompartmentId:   pulumi.String("string"),
    	Description:     pulumi.String("string"),
    	ApplicationType: pulumi.String("string"),
    	DisplayName:     pulumi.String("string"),
    	EnvironmentType: pulumi.String("string"),
    	DefinedTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	FreeformTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	GroupType:           pulumi.String("string"),
    	IsTargetAutoConfirm: pulumi.Bool(false),
    	NotificationPreferences: &fleetappsmanagement.FleetNotificationPreferencesArgs{
    		CompartmentId: pulumi.String("string"),
    		TopicId:       pulumi.String("string"),
    		Preferences: &fleetappsmanagement.FleetNotificationPreferencesPreferencesArgs{
    			OnJobFailure:           pulumi.Bool(false),
    			OnTopologyModification: pulumi.Bool(false),
    			OnUpcomingSchedule:     pulumi.Bool(false),
    		},
    	},
    	Products: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	ResourceSelectionType: pulumi.String("string"),
    	RuleSelectionCriteria: &fleetappsmanagement.FleetRuleSelectionCriteriaArgs{
    		MatchCondition: pulumi.String("string"),
    		Rules: fleetappsmanagement.FleetRuleSelectionCriteriaRuleArray{
    			&fleetappsmanagement.FleetRuleSelectionCriteriaRuleArgs{
    				CompartmentId: pulumi.String("string"),
    				Conditions: fleetappsmanagement.FleetRuleSelectionCriteriaRuleConditionArray{
    					&fleetappsmanagement.FleetRuleSelectionCriteriaRuleConditionArgs{
    						AttrGroup: pulumi.String("string"),
    						AttrKey:   pulumi.String("string"),
    						AttrValue: pulumi.String("string"),
    					},
    				},
    				ResourceCompartmentId: pulumi.String("string"),
    				Basis:                 pulumi.String("string"),
    			},
    		},
    	},
    })
    
    var fleetResource = new Fleet("fleetResource", FleetArgs.builder()
        .fleetType("string")
        .compartmentId("string")
        .description("string")
        .applicationType("string")
        .displayName("string")
        .environmentType("string")
        .definedTags(Map.of("string", "string"))
        .freeformTags(Map.of("string", "string"))
        .groupType("string")
        .isTargetAutoConfirm(false)
        .notificationPreferences(FleetNotificationPreferencesArgs.builder()
            .compartmentId("string")
            .topicId("string")
            .preferences(FleetNotificationPreferencesPreferencesArgs.builder()
                .onJobFailure(false)
                .onTopologyModification(false)
                .onUpcomingSchedule(false)
                .build())
            .build())
        .products("string")
        .resourceSelectionType("string")
        .ruleSelectionCriteria(FleetRuleSelectionCriteriaArgs.builder()
            .matchCondition("string")
            .rules(FleetRuleSelectionCriteriaRuleArgs.builder()
                .compartmentId("string")
                .conditions(FleetRuleSelectionCriteriaRuleConditionArgs.builder()
                    .attrGroup("string")
                    .attrKey("string")
                    .attrValue("string")
                    .build())
                .resourceCompartmentId("string")
                .basis("string")
                .build())
            .build())
        .build());
    
    fleet_resource = oci.fleet_apps_management.Fleet("fleetResource",
        fleet_type="string",
        compartment_id="string",
        description="string",
        application_type="string",
        display_name="string",
        environment_type="string",
        defined_tags={
            "string": "string",
        },
        freeform_tags={
            "string": "string",
        },
        group_type="string",
        is_target_auto_confirm=False,
        notification_preferences={
            "compartment_id": "string",
            "topic_id": "string",
            "preferences": {
                "on_job_failure": False,
                "on_topology_modification": False,
                "on_upcoming_schedule": False,
            },
        },
        products=["string"],
        resource_selection_type="string",
        rule_selection_criteria={
            "match_condition": "string",
            "rules": [{
                "compartment_id": "string",
                "conditions": [{
                    "attr_group": "string",
                    "attr_key": "string",
                    "attr_value": "string",
                }],
                "resource_compartment_id": "string",
                "basis": "string",
            }],
        })
    
    const fleetResource = new oci.fleetappsmanagement.Fleet("fleetResource", {
        fleetType: "string",
        compartmentId: "string",
        description: "string",
        applicationType: "string",
        displayName: "string",
        environmentType: "string",
        definedTags: {
            string: "string",
        },
        freeformTags: {
            string: "string",
        },
        groupType: "string",
        isTargetAutoConfirm: false,
        notificationPreferences: {
            compartmentId: "string",
            topicId: "string",
            preferences: {
                onJobFailure: false,
                onTopologyModification: false,
                onUpcomingSchedule: false,
            },
        },
        products: ["string"],
        resourceSelectionType: "string",
        ruleSelectionCriteria: {
            matchCondition: "string",
            rules: [{
                compartmentId: "string",
                conditions: [{
                    attrGroup: "string",
                    attrKey: "string",
                    attrValue: "string",
                }],
                resourceCompartmentId: "string",
                basis: "string",
            }],
        },
    });
    
    type: oci:FleetAppsManagement:Fleet
    properties:
        applicationType: string
        compartmentId: string
        definedTags:
            string: string
        description: string
        displayName: string
        environmentType: string
        fleetType: string
        freeformTags:
            string: string
        groupType: string
        isTargetAutoConfirm: false
        notificationPreferences:
            compartmentId: string
            preferences:
                onJobFailure: false
                onTopologyModification: false
                onUpcomingSchedule: false
            topicId: string
        products:
            - string
        resourceSelectionType: string
        ruleSelectionCriteria:
            matchCondition: string
            rules:
                - basis: string
                  compartmentId: string
                  conditions:
                    - attrGroup: string
                      attrKey: string
                      attrValue: string
                  resourceCompartmentId: string
    

    Fleet 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 Fleet resource accepts the following input properties:

    CompartmentId string
    Tenancy OCID
    FleetType string
    Type of the Fleet
    ApplicationType string
    Application Type associated with the Fleet.Applicable for Environment fleet types.
    DefinedTags Dictionary<string, string>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    (Updatable) A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
    DisplayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
    EnvironmentType string
    Environment Type associated with the Fleet.Applicable for Environment fleet types.
    FreeformTags Dictionary<string, string>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    GroupType string
    Group Type associated with Group Fleet.Applicable for Group fleet types.
    IsTargetAutoConfirm bool
    (Updatable) A value which represents if auto confirming of the targets can be enabled
    NotificationPreferences FleetNotificationPreferences
    (Updatable) Conditions when met to send notifications on the fleet activities
    Products List<string>
    Products associated with the Fleet
    ResourceSelectionType string
    Type of resource selection in a fleet
    RuleSelectionCriteria FleetRuleSelectionCriteria
    (Updatable) Rule Selection Criteria
    CompartmentId string
    Tenancy OCID
    FleetType string
    Type of the Fleet
    ApplicationType string
    Application Type associated with the Fleet.Applicable for Environment fleet types.
    DefinedTags map[string]string
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    (Updatable) A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
    DisplayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
    EnvironmentType string
    Environment Type associated with the Fleet.Applicable for Environment fleet types.
    FreeformTags map[string]string
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    GroupType string
    Group Type associated with Group Fleet.Applicable for Group fleet types.
    IsTargetAutoConfirm bool
    (Updatable) A value which represents if auto confirming of the targets can be enabled
    NotificationPreferences FleetNotificationPreferencesArgs
    (Updatable) Conditions when met to send notifications on the fleet activities
    Products []string
    Products associated with the Fleet
    ResourceSelectionType string
    Type of resource selection in a fleet
    RuleSelectionCriteria FleetRuleSelectionCriteriaArgs
    (Updatable) Rule Selection Criteria
    compartmentId String
    Tenancy OCID
    fleetType String
    Type of the Fleet
    applicationType String
    Application Type associated with the Fleet.Applicable for Environment fleet types.
    definedTags Map<String,String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    (Updatable) A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
    displayName String
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
    environmentType String
    Environment Type associated with the Fleet.Applicable for Environment fleet types.
    freeformTags Map<String,String>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    groupType String
    Group Type associated with Group Fleet.Applicable for Group fleet types.
    isTargetAutoConfirm Boolean
    (Updatable) A value which represents if auto confirming of the targets can be enabled
    notificationPreferences FleetNotificationPreferences
    (Updatable) Conditions when met to send notifications on the fleet activities
    products List<String>
    Products associated with the Fleet
    resourceSelectionType String
    Type of resource selection in a fleet
    ruleSelectionCriteria FleetRuleSelectionCriteria
    (Updatable) Rule Selection Criteria
    compartmentId string
    Tenancy OCID
    fleetType string
    Type of the Fleet
    applicationType string
    Application Type associated with the Fleet.Applicable for Environment fleet types.
    definedTags {[key: string]: string}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description string
    (Updatable) A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
    displayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
    environmentType string
    Environment Type associated with the Fleet.Applicable for Environment fleet types.
    freeformTags {[key: string]: string}
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    groupType string
    Group Type associated with Group Fleet.Applicable for Group fleet types.
    isTargetAutoConfirm boolean
    (Updatable) A value which represents if auto confirming of the targets can be enabled
    notificationPreferences FleetNotificationPreferences
    (Updatable) Conditions when met to send notifications on the fleet activities
    products string[]
    Products associated with the Fleet
    resourceSelectionType string
    Type of resource selection in a fleet
    ruleSelectionCriteria FleetRuleSelectionCriteria
    (Updatable) Rule Selection Criteria
    compartment_id str
    Tenancy OCID
    fleet_type str
    Type of the Fleet
    application_type str
    Application Type associated with the Fleet.Applicable for Environment fleet types.
    defined_tags Mapping[str, str]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description str
    (Updatable) A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
    display_name str
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
    environment_type str
    Environment Type associated with the Fleet.Applicable for Environment fleet types.
    freeform_tags Mapping[str, str]
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    group_type str
    Group Type associated with Group Fleet.Applicable for Group fleet types.
    is_target_auto_confirm bool
    (Updatable) A value which represents if auto confirming of the targets can be enabled
    notification_preferences fleetappsmanagement.FleetNotificationPreferencesArgs
    (Updatable) Conditions when met to send notifications on the fleet activities
    products Sequence[str]
    Products associated with the Fleet
    resource_selection_type str
    Type of resource selection in a fleet
    rule_selection_criteria fleetappsmanagement.FleetRuleSelectionCriteriaArgs
    (Updatable) Rule Selection Criteria
    compartmentId String
    Tenancy OCID
    fleetType String
    Type of the Fleet
    applicationType String
    Application Type associated with the Fleet.Applicable for Environment fleet types.
    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    (Updatable) A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
    displayName String
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
    environmentType String
    Environment Type associated with the Fleet.Applicable for Environment fleet types.
    freeformTags Map<String>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    groupType String
    Group Type associated with Group Fleet.Applicable for Group fleet types.
    isTargetAutoConfirm Boolean
    (Updatable) A value which represents if auto confirming of the targets can be enabled
    notificationPreferences Property Map
    (Updatable) Conditions when met to send notifications on the fleet activities
    products List<String>
    Products associated with the Fleet
    resourceSelectionType String
    Type of resource selection in a fleet
    ruleSelectionCriteria Property Map
    (Updatable) Rule Selection Criteria

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Fleet resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    ResourceRegion string
    Associated region
    State string
    The lifecycle state of the Fleet.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time this resource was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    The time this resource was last updated. An RFC3339 formatted datetime string.
    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    ResourceRegion string
    Associated region
    State string
    The lifecycle state of the Fleet.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time this resource was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    The time this resource was last updated. An RFC3339 formatted datetime string.
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails String
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    resourceRegion String
    Associated region
    state String
    The lifecycle state of the Fleet.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time this resource was created. An RFC3339 formatted datetime string.
    timeUpdated String
    The time this resource was last updated. An RFC3339 formatted datetime string.
    id string
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    resourceRegion string
    Associated region
    state string
    The lifecycle state of the Fleet.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The time this resource was created. An RFC3339 formatted datetime string.
    timeUpdated string
    The time this resource was last updated. An RFC3339 formatted datetime string.
    id str
    The provider-assigned unique ID for this managed resource.
    lifecycle_details str
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    resource_region str
    Associated region
    state str
    The lifecycle state of the Fleet.
    system_tags 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.
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails String
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    resourceRegion String
    Associated region
    state String
    The lifecycle state of the Fleet.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time this resource was created. An RFC3339 formatted datetime string.
    timeUpdated String
    The time this resource was last updated. An RFC3339 formatted datetime string.

    Look up Existing Fleet Resource

    Get an existing Fleet 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?: FleetState, opts?: CustomResourceOptions): Fleet
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            application_type: Optional[str] = None,
            compartment_id: Optional[str] = None,
            defined_tags: Optional[Mapping[str, str]] = None,
            description: Optional[str] = None,
            display_name: Optional[str] = None,
            environment_type: Optional[str] = None,
            fleet_type: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, str]] = None,
            group_type: Optional[str] = None,
            is_target_auto_confirm: Optional[bool] = None,
            lifecycle_details: Optional[str] = None,
            notification_preferences: Optional[_fleetappsmanagement.FleetNotificationPreferencesArgs] = None,
            products: Optional[Sequence[str]] = None,
            resource_region: Optional[str] = None,
            resource_selection_type: Optional[str] = None,
            rule_selection_criteria: Optional[_fleetappsmanagement.FleetRuleSelectionCriteriaArgs] = None,
            state: Optional[str] = None,
            system_tags: Optional[Mapping[str, str]] = None,
            time_created: Optional[str] = None,
            time_updated: Optional[str] = None) -> Fleet
    func GetFleet(ctx *Context, name string, id IDInput, state *FleetState, opts ...ResourceOption) (*Fleet, error)
    public static Fleet Get(string name, Input<string> id, FleetState? state, CustomResourceOptions? opts = null)
    public static Fleet get(String name, Output<String> id, FleetState 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.
    The following state arguments are supported:
    ApplicationType string
    Application Type associated with the Fleet.Applicable for Environment fleet types.
    CompartmentId string
    Tenancy OCID
    DefinedTags Dictionary<string, string>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    (Updatable) A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
    DisplayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
    EnvironmentType string
    Environment Type associated with the Fleet.Applicable for Environment fleet types.
    FleetType string
    Type of the Fleet
    FreeformTags Dictionary<string, string>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    GroupType string
    Group Type associated with Group Fleet.Applicable for Group fleet types.
    IsTargetAutoConfirm bool
    (Updatable) A value which represents if auto confirming of the targets can be enabled
    LifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    NotificationPreferences FleetNotificationPreferences
    (Updatable) Conditions when met to send notifications on the fleet activities
    Products List<string>
    Products associated with the Fleet
    ResourceRegion string
    Associated region
    ResourceSelectionType string
    Type of resource selection in a fleet
    RuleSelectionCriteria FleetRuleSelectionCriteria
    (Updatable) Rule Selection Criteria
    State string
    The lifecycle state of the Fleet.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time this resource was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    The time this resource was last updated. An RFC3339 formatted datetime string.
    ApplicationType string
    Application Type associated with the Fleet.Applicable for Environment fleet types.
    CompartmentId string
    Tenancy OCID
    DefinedTags map[string]string
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    (Updatable) A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
    DisplayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
    EnvironmentType string
    Environment Type associated with the Fleet.Applicable for Environment fleet types.
    FleetType string
    Type of the Fleet
    FreeformTags map[string]string
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    GroupType string
    Group Type associated with Group Fleet.Applicable for Group fleet types.
    IsTargetAutoConfirm bool
    (Updatable) A value which represents if auto confirming of the targets can be enabled
    LifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    NotificationPreferences FleetNotificationPreferencesArgs
    (Updatable) Conditions when met to send notifications on the fleet activities
    Products []string
    Products associated with the Fleet
    ResourceRegion string
    Associated region
    ResourceSelectionType string
    Type of resource selection in a fleet
    RuleSelectionCriteria FleetRuleSelectionCriteriaArgs
    (Updatable) Rule Selection Criteria
    State string
    The lifecycle state of the Fleet.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time this resource was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    The time this resource was last updated. An RFC3339 formatted datetime string.
    applicationType String
    Application Type associated with the Fleet.Applicable for Environment fleet types.
    compartmentId String
    Tenancy OCID
    definedTags Map<String,String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    (Updatable) A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
    displayName String
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
    environmentType String
    Environment Type associated with the Fleet.Applicable for Environment fleet types.
    fleetType String
    Type of the Fleet
    freeformTags Map<String,String>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    groupType String
    Group Type associated with Group Fleet.Applicable for Group fleet types.
    isTargetAutoConfirm Boolean
    (Updatable) A value which represents if auto confirming of the targets can be enabled
    lifecycleDetails String
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    notificationPreferences FleetNotificationPreferences
    (Updatable) Conditions when met to send notifications on the fleet activities
    products List<String>
    Products associated with the Fleet
    resourceRegion String
    Associated region
    resourceSelectionType String
    Type of resource selection in a fleet
    ruleSelectionCriteria FleetRuleSelectionCriteria
    (Updatable) Rule Selection Criteria
    state String
    The lifecycle state of the Fleet.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time this resource was created. An RFC3339 formatted datetime string.
    timeUpdated String
    The time this resource was last updated. An RFC3339 formatted datetime string.
    applicationType string
    Application Type associated with the Fleet.Applicable for Environment fleet types.
    compartmentId string
    Tenancy OCID
    definedTags {[key: string]: string}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description string
    (Updatable) A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
    displayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
    environmentType string
    Environment Type associated with the Fleet.Applicable for Environment fleet types.
    fleetType string
    Type of the Fleet
    freeformTags {[key: string]: string}
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    groupType string
    Group Type associated with Group Fleet.Applicable for Group fleet types.
    isTargetAutoConfirm boolean
    (Updatable) A value which represents if auto confirming of the targets can be enabled
    lifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    notificationPreferences FleetNotificationPreferences
    (Updatable) Conditions when met to send notifications on the fleet activities
    products string[]
    Products associated with the Fleet
    resourceRegion string
    Associated region
    resourceSelectionType string
    Type of resource selection in a fleet
    ruleSelectionCriteria FleetRuleSelectionCriteria
    (Updatable) Rule Selection Criteria
    state string
    The lifecycle state of the Fleet.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The time this resource was created. An RFC3339 formatted datetime string.
    timeUpdated string
    The time this resource was last updated. An RFC3339 formatted datetime string.
    application_type str
    Application Type associated with the Fleet.Applicable for Environment fleet types.
    compartment_id str
    Tenancy OCID
    defined_tags Mapping[str, str]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description str
    (Updatable) A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
    display_name str
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
    environment_type str
    Environment Type associated with the Fleet.Applicable for Environment fleet types.
    fleet_type str
    Type of the Fleet
    freeform_tags Mapping[str, str]
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    group_type str
    Group Type associated with Group Fleet.Applicable for Group fleet types.
    is_target_auto_confirm bool
    (Updatable) A value which represents if auto confirming of the targets can be enabled
    lifecycle_details str
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    notification_preferences fleetappsmanagement.FleetNotificationPreferencesArgs
    (Updatable) Conditions when met to send notifications on the fleet activities
    products Sequence[str]
    Products associated with the Fleet
    resource_region str
    Associated region
    resource_selection_type str
    Type of resource selection in a fleet
    rule_selection_criteria fleetappsmanagement.FleetRuleSelectionCriteriaArgs
    (Updatable) Rule Selection Criteria
    state str
    The lifecycle state of the Fleet.
    system_tags 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.
    applicationType String
    Application Type associated with the Fleet.Applicable for Environment fleet types.
    compartmentId String
    Tenancy OCID
    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    (Updatable) A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
    displayName String
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
    environmentType String
    Environment Type associated with the Fleet.Applicable for Environment fleet types.
    fleetType String
    Type of the Fleet
    freeformTags Map<String>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    groupType String
    Group Type associated with Group Fleet.Applicable for Group fleet types.
    isTargetAutoConfirm Boolean
    (Updatable) A value which represents if auto confirming of the targets can be enabled
    lifecycleDetails String
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    notificationPreferences Property Map
    (Updatable) Conditions when met to send notifications on the fleet activities
    products List<String>
    Products associated with the Fleet
    resourceRegion String
    Associated region
    resourceSelectionType String
    Type of resource selection in a fleet
    ruleSelectionCriteria Property Map
    (Updatable) Rule Selection Criteria
    state String
    The lifecycle state of the Fleet.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time this resource was created. An RFC3339 formatted datetime string.
    timeUpdated String
    The time this resource was last updated. An RFC3339 formatted datetime string.

    Supporting Types

    FleetNotificationPreferences, FleetNotificationPreferencesArgs

    CompartmentId string
    (Updatable) Copartment Id of the topic where the notifications will be directed
    TopicId string
    (Updatable) Topic Id where the notifications will be directed
    Preferences FleetNotificationPreferencesPreferences
    (Updatable) Preferences to send notifications on the fleet activities
    CompartmentId string
    (Updatable) Copartment Id of the topic where the notifications will be directed
    TopicId string
    (Updatable) Topic Id where the notifications will be directed
    Preferences FleetNotificationPreferencesPreferences
    (Updatable) Preferences to send notifications on the fleet activities
    compartmentId String
    (Updatable) Copartment Id of the topic where the notifications will be directed
    topicId String
    (Updatable) Topic Id where the notifications will be directed
    preferences FleetNotificationPreferencesPreferences
    (Updatable) Preferences to send notifications on the fleet activities
    compartmentId string
    (Updatable) Copartment Id of the topic where the notifications will be directed
    topicId string
    (Updatable) Topic Id where the notifications will be directed
    preferences FleetNotificationPreferencesPreferences
    (Updatable) Preferences to send notifications on the fleet activities
    compartment_id str
    (Updatable) Copartment Id of the topic where the notifications will be directed
    topic_id str
    (Updatable) Topic Id where the notifications will be directed
    preferences fleetappsmanagement.FleetNotificationPreferencesPreferences
    (Updatable) Preferences to send notifications on the fleet activities
    compartmentId String
    (Updatable) Copartment Id of the topic where the notifications will be directed
    topicId String
    (Updatable) Topic Id where the notifications will be directed
    preferences Property Map
    (Updatable) Preferences to send notifications on the fleet activities

    FleetNotificationPreferencesPreferences, FleetNotificationPreferencesPreferencesArgs

    OnJobFailure bool
    (Updatable) Enables or disables notification on Job Failures.'
    OnTopologyModification bool
    (Updatable) Enables or disables notification on Environment Fleet Topology Modification.
    OnUpcomingSchedule bool
    (Updatable) Enables notification on upcoming schedule.
    OnJobFailure bool
    (Updatable) Enables or disables notification on Job Failures.'
    OnTopologyModification bool
    (Updatable) Enables or disables notification on Environment Fleet Topology Modification.
    OnUpcomingSchedule bool
    (Updatable) Enables notification on upcoming schedule.
    onJobFailure Boolean
    (Updatable) Enables or disables notification on Job Failures.'
    onTopologyModification Boolean
    (Updatable) Enables or disables notification on Environment Fleet Topology Modification.
    onUpcomingSchedule Boolean
    (Updatable) Enables notification on upcoming schedule.
    onJobFailure boolean
    (Updatable) Enables or disables notification on Job Failures.'
    onTopologyModification boolean
    (Updatable) Enables or disables notification on Environment Fleet Topology Modification.
    onUpcomingSchedule boolean
    (Updatable) Enables notification on upcoming schedule.
    on_job_failure bool
    (Updatable) Enables or disables notification on Job Failures.'
    on_topology_modification bool
    (Updatable) Enables or disables notification on Environment Fleet Topology Modification.
    on_upcoming_schedule bool
    (Updatable) Enables notification on upcoming schedule.
    onJobFailure Boolean
    (Updatable) Enables or disables notification on Job Failures.'
    onTopologyModification Boolean
    (Updatable) Enables or disables notification on Environment Fleet Topology Modification.
    onUpcomingSchedule Boolean
    (Updatable) Enables notification on upcoming schedule.

    FleetRuleSelectionCriteria, FleetRuleSelectionCriteriaArgs

    MatchCondition string
    (Updatable) Rule selection match condition.
    Rules List<FleetRuleSelectionCriteriaRule>
    (Updatable) Rules.
    MatchCondition string
    (Updatable) Rule selection match condition.
    Rules []FleetRuleSelectionCriteriaRule
    (Updatable) Rules.
    matchCondition String
    (Updatable) Rule selection match condition.
    rules List<FleetRuleSelectionCriteriaRule>
    (Updatable) Rules.
    matchCondition string
    (Updatable) Rule selection match condition.
    rules FleetRuleSelectionCriteriaRule[]
    (Updatable) Rules.
    match_condition str
    (Updatable) Rule selection match condition.
    rules Sequence[fleetappsmanagement.FleetRuleSelectionCriteriaRule]
    (Updatable) Rules.
    matchCondition String
    (Updatable) Rule selection match condition.
    rules List<Property Map>
    (Updatable) Rules.

    FleetRuleSelectionCriteriaRule, FleetRuleSelectionCriteriaRuleArgs

    CompartmentId string
    (Updatable) Please provide the root compartmentId (TenancyId).
    Conditions List<FleetRuleSelectionCriteriaRuleCondition>
    (Updatable) Rule Conditions
    ResourceCompartmentId string

    (Updatable) Resource Compartment Id.Provide the compartmentId the resource belongs to.

    ** 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

    Basis string
    (Updatable) Rule to be be applied on.
    CompartmentId string
    (Updatable) Please provide the root compartmentId (TenancyId).
    Conditions []FleetRuleSelectionCriteriaRuleCondition
    (Updatable) Rule Conditions
    ResourceCompartmentId string

    (Updatable) Resource Compartment Id.Provide the compartmentId the resource belongs to.

    ** 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

    Basis string
    (Updatable) Rule to be be applied on.
    compartmentId String
    (Updatable) Please provide the root compartmentId (TenancyId).
    conditions List<FleetRuleSelectionCriteriaRuleCondition>
    (Updatable) Rule Conditions
    resourceCompartmentId String

    (Updatable) Resource Compartment Id.Provide the compartmentId the resource belongs to.

    ** 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

    basis String
    (Updatable) Rule to be be applied on.
    compartmentId string
    (Updatable) Please provide the root compartmentId (TenancyId).
    conditions FleetRuleSelectionCriteriaRuleCondition[]
    (Updatable) Rule Conditions
    resourceCompartmentId string

    (Updatable) Resource Compartment Id.Provide the compartmentId the resource belongs to.

    ** 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

    basis string
    (Updatable) Rule to be be applied on.
    compartment_id str
    (Updatable) Please provide the root compartmentId (TenancyId).
    conditions Sequence[fleetappsmanagement.FleetRuleSelectionCriteriaRuleCondition]
    (Updatable) Rule Conditions
    resource_compartment_id str

    (Updatable) Resource Compartment Id.Provide the compartmentId the resource belongs to.

    ** 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

    basis str
    (Updatable) Rule to be be applied on.
    compartmentId String
    (Updatable) Please provide the root compartmentId (TenancyId).
    conditions List<Property Map>
    (Updatable) Rule Conditions
    resourceCompartmentId String

    (Updatable) Resource Compartment Id.Provide the compartmentId the resource belongs to.

    ** 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

    basis String
    (Updatable) Rule to be be applied on.

    FleetRuleSelectionCriteriaRuleCondition, FleetRuleSelectionCriteriaRuleConditionArgs

    AttrGroup string
    (Updatable) Attribute Group.
    AttrKey string
    (Updatable) Attribute Key.
    AttrValue string
    (Updatable) Attribute Value.
    AttrGroup string
    (Updatable) Attribute Group.
    AttrKey string
    (Updatable) Attribute Key.
    AttrValue string
    (Updatable) Attribute Value.
    attrGroup String
    (Updatable) Attribute Group.
    attrKey String
    (Updatable) Attribute Key.
    attrValue String
    (Updatable) Attribute Value.
    attrGroup string
    (Updatable) Attribute Group.
    attrKey string
    (Updatable) Attribute Key.
    attrValue string
    (Updatable) Attribute Value.
    attr_group str
    (Updatable) Attribute Group.
    attr_key str
    (Updatable) Attribute Key.
    attr_value str
    (Updatable) Attribute Value.
    attrGroup String
    (Updatable) Attribute Group.
    attrKey String
    (Updatable) Attribute Key.
    attrValue String
    (Updatable) Attribute Value.

    Import

    Fleets can be imported using the id, e.g.

    $ pulumi import oci:FleetAppsManagement/fleet:Fleet test_fleet "id"
    

    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.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi