oci.FleetAppsManagement.CompliancePolicyRule
Explore with Pulumi AI
This resource provides the Compliance Policy Rule resource in Oracle Cloud Infrastructure Fleet Apps Management service.
Creates a CompliancePolicyRule.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testCompliancePolicyRule = new oci.fleetappsmanagement.CompliancePolicyRule("test_compliance_policy_rule", {
compartmentId: compartmentId,
displayName: compliancePolicyRuleDisplayName,
patchSelection: {
selectionType: compliancePolicyRulePatchSelectionSelectionType,
daysSinceRelease: compliancePolicyRulePatchSelectionDaysSinceRelease,
patchLevel: compliancePolicyRulePatchSelectionPatchLevel,
patchName: testPatch.name,
},
patchTypes: compliancePolicyRulePatchType,
productVersion: {
version: compliancePolicyRuleProductVersionVersion,
isApplicableForAllHigherVersions: compliancePolicyRuleProductVersionIsApplicableForAllHigherVersions,
},
compliancePolicyId: testCompliancePolicy.id,
definedTags: {
"foo-namespace.bar-key": "value",
},
freeformTags: {
"bar-key": "value",
},
gracePeriod: compliancePolicyRuleGracePeriod,
severities: compliancePolicyRuleSeverity,
});
import pulumi
import pulumi_oci as oci
test_compliance_policy_rule = oci.fleet_apps_management.CompliancePolicyRule("test_compliance_policy_rule",
compartment_id=compartment_id,
display_name=compliance_policy_rule_display_name,
patch_selection={
"selection_type": compliance_policy_rule_patch_selection_selection_type,
"days_since_release": compliance_policy_rule_patch_selection_days_since_release,
"patch_level": compliance_policy_rule_patch_selection_patch_level,
"patch_name": test_patch["name"],
},
patch_types=compliance_policy_rule_patch_type,
product_version={
"version": compliance_policy_rule_product_version_version,
"is_applicable_for_all_higher_versions": compliance_policy_rule_product_version_is_applicable_for_all_higher_versions,
},
compliance_policy_id=test_compliance_policy["id"],
defined_tags={
"foo-namespace.bar-key": "value",
},
freeform_tags={
"bar-key": "value",
},
grace_period=compliance_policy_rule_grace_period,
severities=compliance_policy_rule_severity)
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.NewCompliancePolicyRule(ctx, "test_compliance_policy_rule", &FleetAppsManagement.CompliancePolicyRuleArgs{
CompartmentId: pulumi.Any(compartmentId),
DisplayName: pulumi.Any(compliancePolicyRuleDisplayName),
PatchSelection: &fleetappsmanagement.CompliancePolicyRulePatchSelectionArgs{
SelectionType: pulumi.Any(compliancePolicyRulePatchSelectionSelectionType),
DaysSinceRelease: pulumi.Any(compliancePolicyRulePatchSelectionDaysSinceRelease),
PatchLevel: pulumi.Any(compliancePolicyRulePatchSelectionPatchLevel),
PatchName: pulumi.Any(testPatch.Name),
},
PatchTypes: pulumi.Any(compliancePolicyRulePatchType),
ProductVersion: &fleetappsmanagement.CompliancePolicyRuleProductVersionArgs{
Version: pulumi.Any(compliancePolicyRuleProductVersionVersion),
IsApplicableForAllHigherVersions: pulumi.Any(compliancePolicyRuleProductVersionIsApplicableForAllHigherVersions),
},
CompliancePolicyId: pulumi.Any(testCompliancePolicy.Id),
DefinedTags: pulumi.StringMap{
"foo-namespace.bar-key": pulumi.String("value"),
},
FreeformTags: pulumi.StringMap{
"bar-key": pulumi.String("value"),
},
GracePeriod: pulumi.Any(compliancePolicyRuleGracePeriod),
Severities: pulumi.Any(compliancePolicyRuleSeverity),
})
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 testCompliancePolicyRule = new Oci.FleetAppsManagement.CompliancePolicyRule("test_compliance_policy_rule", new()
{
CompartmentId = compartmentId,
DisplayName = compliancePolicyRuleDisplayName,
PatchSelection = new Oci.FleetAppsManagement.Inputs.CompliancePolicyRulePatchSelectionArgs
{
SelectionType = compliancePolicyRulePatchSelectionSelectionType,
DaysSinceRelease = compliancePolicyRulePatchSelectionDaysSinceRelease,
PatchLevel = compliancePolicyRulePatchSelectionPatchLevel,
PatchName = testPatch.Name,
},
PatchTypes = compliancePolicyRulePatchType,
ProductVersion = new Oci.FleetAppsManagement.Inputs.CompliancePolicyRuleProductVersionArgs
{
Version = compliancePolicyRuleProductVersionVersion,
IsApplicableForAllHigherVersions = compliancePolicyRuleProductVersionIsApplicableForAllHigherVersions,
},
CompliancePolicyId = testCompliancePolicy.Id,
DefinedTags =
{
{ "foo-namespace.bar-key", "value" },
},
FreeformTags =
{
{ "bar-key", "value" },
},
GracePeriod = compliancePolicyRuleGracePeriod,
Severities = compliancePolicyRuleSeverity,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.FleetAppsManagement.CompliancePolicyRule;
import com.pulumi.oci.FleetAppsManagement.CompliancePolicyRuleArgs;
import com.pulumi.oci.FleetAppsManagement.inputs.CompliancePolicyRulePatchSelectionArgs;
import com.pulumi.oci.FleetAppsManagement.inputs.CompliancePolicyRuleProductVersionArgs;
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 testCompliancePolicyRule = new CompliancePolicyRule("testCompliancePolicyRule", CompliancePolicyRuleArgs.builder()
.compartmentId(compartmentId)
.displayName(compliancePolicyRuleDisplayName)
.patchSelection(CompliancePolicyRulePatchSelectionArgs.builder()
.selectionType(compliancePolicyRulePatchSelectionSelectionType)
.daysSinceRelease(compliancePolicyRulePatchSelectionDaysSinceRelease)
.patchLevel(compliancePolicyRulePatchSelectionPatchLevel)
.patchName(testPatch.name())
.build())
.patchTypes(compliancePolicyRulePatchType)
.productVersion(CompliancePolicyRuleProductVersionArgs.builder()
.version(compliancePolicyRuleProductVersionVersion)
.isApplicableForAllHigherVersions(compliancePolicyRuleProductVersionIsApplicableForAllHigherVersions)
.build())
.compliancePolicyId(testCompliancePolicy.id())
.definedTags(Map.of("foo-namespace.bar-key", "value"))
.freeformTags(Map.of("bar-key", "value"))
.gracePeriod(compliancePolicyRuleGracePeriod)
.severities(compliancePolicyRuleSeverity)
.build());
}
}
resources:
testCompliancePolicyRule:
type: oci:FleetAppsManagement:CompliancePolicyRule
name: test_compliance_policy_rule
properties:
compartmentId: ${compartmentId}
displayName: ${compliancePolicyRuleDisplayName}
patchSelection:
selectionType: ${compliancePolicyRulePatchSelectionSelectionType}
daysSinceRelease: ${compliancePolicyRulePatchSelectionDaysSinceRelease}
patchLevel: ${compliancePolicyRulePatchSelectionPatchLevel}
patchName: ${testPatch.name}
patchTypes: ${compliancePolicyRulePatchType}
productVersion:
version: ${compliancePolicyRuleProductVersionVersion}
isApplicableForAllHigherVersions: ${compliancePolicyRuleProductVersionIsApplicableForAllHigherVersions}
compliancePolicyId: ${testCompliancePolicy.id}
definedTags:
foo-namespace.bar-key: value
freeformTags:
bar-key: value
gracePeriod: ${compliancePolicyRuleGracePeriod}
severities: ${compliancePolicyRuleSeverity}
Create CompliancePolicyRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CompliancePolicyRule(name: string, args: CompliancePolicyRuleArgs, opts?: CustomResourceOptions);
@overload
def CompliancePolicyRule(resource_name: str,
args: CompliancePolicyRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CompliancePolicyRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
patch_selection: Optional[_fleetappsmanagement.CompliancePolicyRulePatchSelectionArgs] = None,
patch_types: Optional[Sequence[str]] = None,
product_version: Optional[_fleetappsmanagement.CompliancePolicyRuleProductVersionArgs] = None,
compliance_policy_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
grace_period: Optional[str] = None,
severities: Optional[Sequence[str]] = None)
func NewCompliancePolicyRule(ctx *Context, name string, args CompliancePolicyRuleArgs, opts ...ResourceOption) (*CompliancePolicyRule, error)
public CompliancePolicyRule(string name, CompliancePolicyRuleArgs args, CustomResourceOptions? opts = null)
public CompliancePolicyRule(String name, CompliancePolicyRuleArgs args)
public CompliancePolicyRule(String name, CompliancePolicyRuleArgs args, CustomResourceOptions options)
type: oci:FleetAppsManagement:CompliancePolicyRule
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 CompliancePolicyRuleArgs
- 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 CompliancePolicyRuleArgs
- 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 CompliancePolicyRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CompliancePolicyRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CompliancePolicyRuleArgs
- 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 compliancePolicyRuleResource = new Oci.FleetAppsManagement.CompliancePolicyRule("compliancePolicyRuleResource", new()
{
CompartmentId = "string",
DisplayName = "string",
PatchSelection = new Oci.FleetAppsManagement.Inputs.CompliancePolicyRulePatchSelectionArgs
{
SelectionType = "string",
DaysSinceRelease = 0,
PatchLevel = "string",
PatchName = "string",
},
PatchTypes = new[]
{
"string",
},
ProductVersion = new Oci.FleetAppsManagement.Inputs.CompliancePolicyRuleProductVersionArgs
{
Version = "string",
IsApplicableForAllHigherVersions = false,
},
CompliancePolicyId = "string",
DefinedTags =
{
{ "string", "string" },
},
FreeformTags =
{
{ "string", "string" },
},
GracePeriod = "string",
Severities = new[]
{
"string",
},
});
example, err := FleetAppsManagement.NewCompliancePolicyRule(ctx, "compliancePolicyRuleResource", &FleetAppsManagement.CompliancePolicyRuleArgs{
CompartmentId: pulumi.String("string"),
DisplayName: pulumi.String("string"),
PatchSelection: &fleetappsmanagement.CompliancePolicyRulePatchSelectionArgs{
SelectionType: pulumi.String("string"),
DaysSinceRelease: pulumi.Int(0),
PatchLevel: pulumi.String("string"),
PatchName: pulumi.String("string"),
},
PatchTypes: pulumi.StringArray{
pulumi.String("string"),
},
ProductVersion: &fleetappsmanagement.CompliancePolicyRuleProductVersionArgs{
Version: pulumi.String("string"),
IsApplicableForAllHigherVersions: pulumi.Bool(false),
},
CompliancePolicyId: pulumi.String("string"),
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
GracePeriod: pulumi.String("string"),
Severities: pulumi.StringArray{
pulumi.String("string"),
},
})
var compliancePolicyRuleResource = new CompliancePolicyRule("compliancePolicyRuleResource", CompliancePolicyRuleArgs.builder()
.compartmentId("string")
.displayName("string")
.patchSelection(CompliancePolicyRulePatchSelectionArgs.builder()
.selectionType("string")
.daysSinceRelease(0)
.patchLevel("string")
.patchName("string")
.build())
.patchTypes("string")
.productVersion(CompliancePolicyRuleProductVersionArgs.builder()
.version("string")
.isApplicableForAllHigherVersions(false)
.build())
.compliancePolicyId("string")
.definedTags(Map.of("string", "string"))
.freeformTags(Map.of("string", "string"))
.gracePeriod("string")
.severities("string")
.build());
compliance_policy_rule_resource = oci.fleet_apps_management.CompliancePolicyRule("compliancePolicyRuleResource",
compartment_id="string",
display_name="string",
patch_selection={
"selection_type": "string",
"days_since_release": 0,
"patch_level": "string",
"patch_name": "string",
},
patch_types=["string"],
product_version={
"version": "string",
"is_applicable_for_all_higher_versions": False,
},
compliance_policy_id="string",
defined_tags={
"string": "string",
},
freeform_tags={
"string": "string",
},
grace_period="string",
severities=["string"])
const compliancePolicyRuleResource = new oci.fleetappsmanagement.CompliancePolicyRule("compliancePolicyRuleResource", {
compartmentId: "string",
displayName: "string",
patchSelection: {
selectionType: "string",
daysSinceRelease: 0,
patchLevel: "string",
patchName: "string",
},
patchTypes: ["string"],
productVersion: {
version: "string",
isApplicableForAllHigherVersions: false,
},
compliancePolicyId: "string",
definedTags: {
string: "string",
},
freeformTags: {
string: "string",
},
gracePeriod: "string",
severities: ["string"],
});
type: oci:FleetAppsManagement:CompliancePolicyRule
properties:
compartmentId: string
compliancePolicyId: string
definedTags:
string: string
displayName: string
freeformTags:
string: string
gracePeriod: string
patchSelection:
daysSinceRelease: 0
patchLevel: string
patchName: string
selectionType: string
patchTypes:
- string
productVersion:
isApplicableForAllHigherVersions: false
version: string
severities:
- string
CompliancePolicyRule 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 CompliancePolicyRule resource accepts the following input properties:
- Compartment
Id string - The OCID of the compartment the CompliancePolicyRule belongs to.
- 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
- Patch
Selection CompliancePolicy Rule Patch Selection - (Updatable) Patch Selection Details
- Patch
Types List<string> - (Updatable) PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies.
- Product
Version CompliancePolicy Rule Product Version - (Updatable) A specific product version or a specific version and succeeding. Example: 12.1 or 12.1 and above for Oracle WebLogic Application server. The policy applies to the next version only, and not to other versions such as, 12.1.x.
- Compliance
Policy stringId - Unique OCID of the CompliancePolicy this CompliancePolicyRule belongs to.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- 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"}
- Grace
Period string - (Updatable) Grace period in days,weeks,months or years the exemption is applicable for the rule. This enables a grace period when Fleet Application Management doesn't report the product as noncompliant when patch is not applied.
- Severities List<string>
(Updatable) Severity to which this CompliancePolicyRule applies.
** 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 - The OCID of the compartment the CompliancePolicyRule belongs to.
- 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
- Patch
Selection CompliancePolicy Rule Patch Selection Args - (Updatable) Patch Selection Details
- Patch
Types []string - (Updatable) PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies.
- Product
Version CompliancePolicy Rule Product Version Args - (Updatable) A specific product version or a specific version and succeeding. Example: 12.1 or 12.1 and above for Oracle WebLogic Application server. The policy applies to the next version only, and not to other versions such as, 12.1.x.
- Compliance
Policy stringId - Unique OCID of the CompliancePolicy this CompliancePolicyRule belongs to.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- 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"}
- Grace
Period string - (Updatable) Grace period in days,weeks,months or years the exemption is applicable for the rule. This enables a grace period when Fleet Application Management doesn't report the product as noncompliant when patch is not applied.
- Severities []string
(Updatable) Severity to which this CompliancePolicyRule applies.
** 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 - The OCID of the compartment the CompliancePolicyRule belongs to.
- 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
- patch
Selection CompliancePolicy Rule Patch Selection - (Updatable) Patch Selection Details
- patch
Types List<String> - (Updatable) PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies.
- product
Version CompliancePolicy Rule Product Version - (Updatable) A specific product version or a specific version and succeeding. Example: 12.1 or 12.1 and above for Oracle WebLogic Application server. The policy applies to the next version only, and not to other versions such as, 12.1.x.
- compliance
Policy StringId - Unique OCID of the CompliancePolicy this CompliancePolicyRule belongs to.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- 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"}
- grace
Period String - (Updatable) Grace period in days,weeks,months or years the exemption is applicable for the rule. This enables a grace period when Fleet Application Management doesn't report the product as noncompliant when patch is not applied.
- severities List<String>
(Updatable) Severity to which this CompliancePolicyRule applies.
** 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 - The OCID of the compartment the CompliancePolicyRule belongs to.
- 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
- patch
Selection CompliancePolicy Rule Patch Selection - (Updatable) Patch Selection Details
- patch
Types string[] - (Updatable) PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies.
- product
Version CompliancePolicy Rule Product Version - (Updatable) A specific product version or a specific version and succeeding. Example: 12.1 or 12.1 and above for Oracle WebLogic Application server. The policy applies to the next version only, and not to other versions such as, 12.1.x.
- compliance
Policy stringId - Unique OCID of the CompliancePolicy this CompliancePolicyRule belongs to.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- {[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"}
- grace
Period string - (Updatable) Grace period in days,weeks,months or years the exemption is applicable for the rule. This enables a grace period when Fleet Application Management doesn't report the product as noncompliant when patch is not applied.
- severities string[]
(Updatable) Severity to which this CompliancePolicyRule applies.
** 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 - The OCID of the compartment the CompliancePolicyRule belongs to.
- 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
- patch_
selection fleetappsmanagement.Compliance Policy Rule Patch Selection Args - (Updatable) Patch Selection Details
- patch_
types Sequence[str] - (Updatable) PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies.
- product_
version fleetappsmanagement.Compliance Policy Rule Product Version Args - (Updatable) A specific product version or a specific version and succeeding. Example: 12.1 or 12.1 and above for Oracle WebLogic Application server. The policy applies to the next version only, and not to other versions such as, 12.1.x.
- compliance_
policy_ strid - Unique OCID of the CompliancePolicy this CompliancePolicyRule belongs to.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- 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"}
- grace_
period str - (Updatable) Grace period in days,weeks,months or years the exemption is applicable for the rule. This enables a grace period when Fleet Application Management doesn't report the product as noncompliant when patch is not applied.
- severities Sequence[str]
(Updatable) Severity to which this CompliancePolicyRule applies.
** 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 - The OCID of the compartment the CompliancePolicyRule belongs to.
- 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
- patch
Selection Property Map - (Updatable) Patch Selection Details
- patch
Types List<String> - (Updatable) PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies.
- product
Version Property Map - (Updatable) A specific product version or a specific version and succeeding. Example: 12.1 or 12.1 and above for Oracle WebLogic Application server. The policy applies to the next version only, and not to other versions such as, 12.1.x.
- compliance
Policy StringId - Unique OCID of the CompliancePolicy this CompliancePolicyRule belongs to.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- 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"}
- grace
Period String - (Updatable) Grace period in days,weeks,months or years the exemption is applicable for the rule. This enables a grace period when Fleet Application Management doesn't report the product as noncompliant when patch is not applied.
- severities List<String>
(Updatable) Severity to which this CompliancePolicyRule applies.
** 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 CompliancePolicyRule resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string - A message that describes the current state of the CompliancePolicyRule in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- State string
- The current state of the CompliancePolicyRule.
- 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 date and time the CompliancePolicyRule was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- Time
Updated string - The date and time the CompliancePolicyRule was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string - A message that describes the current state of the CompliancePolicyRule in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- State string
- The current state of the CompliancePolicyRule.
- 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 date and time the CompliancePolicyRule was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- Time
Updated string - The date and time the CompliancePolicyRule was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details String - A message that describes the current state of the CompliancePolicyRule in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- state String
- The current state of the CompliancePolicyRule.
- 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 date and time the CompliancePolicyRule was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- time
Updated String - The date and time the CompliancePolicyRule was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- id string
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details string - A message that describes the current state of the CompliancePolicyRule in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- state string
- The current state of the CompliancePolicyRule.
- {[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 date and time the CompliancePolicyRule was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- time
Updated string - The date and time the CompliancePolicyRule was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- id str
- The provider-assigned unique ID for this managed resource.
- lifecycle_
details str - A message that describes the current state of the CompliancePolicyRule in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- state str
- The current state of the CompliancePolicyRule.
- 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 date and time the CompliancePolicyRule was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- time_
updated str - The date and time the CompliancePolicyRule was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details String - A message that describes the current state of the CompliancePolicyRule in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- state String
- The current state of the CompliancePolicyRule.
- 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 date and time the CompliancePolicyRule was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- time
Updated String - The date and time the CompliancePolicyRule was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
Look up Existing CompliancePolicyRule Resource
Get an existing CompliancePolicyRule 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?: CompliancePolicyRuleState, opts?: CustomResourceOptions): CompliancePolicyRule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
compliance_policy_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
grace_period: Optional[str] = None,
lifecycle_details: Optional[str] = None,
patch_selection: Optional[_fleetappsmanagement.CompliancePolicyRulePatchSelectionArgs] = None,
patch_types: Optional[Sequence[str]] = None,
product_version: Optional[_fleetappsmanagement.CompliancePolicyRuleProductVersionArgs] = None,
severities: Optional[Sequence[str]] = None,
state: Optional[str] = None,
system_tags: Optional[Mapping[str, str]] = None,
time_created: Optional[str] = None,
time_updated: Optional[str] = None) -> CompliancePolicyRule
func GetCompliancePolicyRule(ctx *Context, name string, id IDInput, state *CompliancePolicyRuleState, opts ...ResourceOption) (*CompliancePolicyRule, error)
public static CompliancePolicyRule Get(string name, Input<string> id, CompliancePolicyRuleState? state, CustomResourceOptions? opts = null)
public static CompliancePolicyRule get(String name, Output<String> id, CompliancePolicyRuleState state, CustomResourceOptions options)
resources: _: type: oci:FleetAppsManagement:CompliancePolicyRule 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.
- Compartment
Id string - The OCID of the compartment the CompliancePolicyRule belongs to.
- Compliance
Policy stringId - Unique OCID of the CompliancePolicy this CompliancePolicyRule belongs to.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- 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
- 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"}
- Grace
Period string - (Updatable) Grace period in days,weeks,months or years the exemption is applicable for the rule. This enables a grace period when Fleet Application Management doesn't report the product as noncompliant when patch is not applied.
- Lifecycle
Details string - A message that describes the current state of the CompliancePolicyRule in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- Patch
Selection CompliancePolicy Rule Patch Selection - (Updatable) Patch Selection Details
- Patch
Types List<string> - (Updatable) PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies.
- Product
Version CompliancePolicy Rule Product Version - (Updatable) A specific product version or a specific version and succeeding. Example: 12.1 or 12.1 and above for Oracle WebLogic Application server. The policy applies to the next version only, and not to other versions such as, 12.1.x.
- Severities List<string>
(Updatable) Severity to which this CompliancePolicyRule applies.
** 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
- State string
- The current state of the CompliancePolicyRule.
- 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 date and time the CompliancePolicyRule was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- Time
Updated string - The date and time the CompliancePolicyRule was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- Compartment
Id string - The OCID of the compartment the CompliancePolicyRule belongs to.
- Compliance
Policy stringId - Unique OCID of the CompliancePolicy this CompliancePolicyRule belongs to.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- 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
- 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"}
- Grace
Period string - (Updatable) Grace period in days,weeks,months or years the exemption is applicable for the rule. This enables a grace period when Fleet Application Management doesn't report the product as noncompliant when patch is not applied.
- Lifecycle
Details string - A message that describes the current state of the CompliancePolicyRule in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- Patch
Selection CompliancePolicy Rule Patch Selection Args - (Updatable) Patch Selection Details
- Patch
Types []string - (Updatable) PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies.
- Product
Version CompliancePolicy Rule Product Version Args - (Updatable) A specific product version or a specific version and succeeding. Example: 12.1 or 12.1 and above for Oracle WebLogic Application server. The policy applies to the next version only, and not to other versions such as, 12.1.x.
- Severities []string
(Updatable) Severity to which this CompliancePolicyRule applies.
** 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
- State string
- The current state of the CompliancePolicyRule.
- 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 date and time the CompliancePolicyRule was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- Time
Updated string - The date and time the CompliancePolicyRule was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- compartment
Id String - The OCID of the compartment the CompliancePolicyRule belongs to.
- compliance
Policy StringId - Unique OCID of the CompliancePolicy this CompliancePolicyRule belongs to.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- 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
- 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"}
- grace
Period String - (Updatable) Grace period in days,weeks,months or years the exemption is applicable for the rule. This enables a grace period when Fleet Application Management doesn't report the product as noncompliant when patch is not applied.
- lifecycle
Details String - A message that describes the current state of the CompliancePolicyRule in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- patch
Selection CompliancePolicy Rule Patch Selection - (Updatable) Patch Selection Details
- patch
Types List<String> - (Updatable) PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies.
- product
Version CompliancePolicy Rule Product Version - (Updatable) A specific product version or a specific version and succeeding. Example: 12.1 or 12.1 and above for Oracle WebLogic Application server. The policy applies to the next version only, and not to other versions such as, 12.1.x.
- severities List<String>
(Updatable) Severity to which this CompliancePolicyRule applies.
** 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
- state String
- The current state of the CompliancePolicyRule.
- 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 date and time the CompliancePolicyRule was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- time
Updated String - The date and time the CompliancePolicyRule was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- compartment
Id string - The OCID of the compartment the CompliancePolicyRule belongs to.
- compliance
Policy stringId - Unique OCID of the CompliancePolicy this CompliancePolicyRule belongs to.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- 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
- {[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"}
- grace
Period string - (Updatable) Grace period in days,weeks,months or years the exemption is applicable for the rule. This enables a grace period when Fleet Application Management doesn't report the product as noncompliant when patch is not applied.
- lifecycle
Details string - A message that describes the current state of the CompliancePolicyRule in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- patch
Selection CompliancePolicy Rule Patch Selection - (Updatable) Patch Selection Details
- patch
Types string[] - (Updatable) PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies.
- product
Version CompliancePolicy Rule Product Version - (Updatable) A specific product version or a specific version and succeeding. Example: 12.1 or 12.1 and above for Oracle WebLogic Application server. The policy applies to the next version only, and not to other versions such as, 12.1.x.
- severities string[]
(Updatable) Severity to which this CompliancePolicyRule applies.
** 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
- state string
- The current state of the CompliancePolicyRule.
- {[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 date and time the CompliancePolicyRule was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- time
Updated string - The date and time the CompliancePolicyRule was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- compartment_
id str - The OCID of the compartment the CompliancePolicyRule belongs to.
- compliance_
policy_ strid - Unique OCID of the CompliancePolicy this CompliancePolicyRule belongs to.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- 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
- 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"}
- grace_
period str - (Updatable) Grace period in days,weeks,months or years the exemption is applicable for the rule. This enables a grace period when Fleet Application Management doesn't report the product as noncompliant when patch is not applied.
- lifecycle_
details str - A message that describes the current state of the CompliancePolicyRule in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- patch_
selection fleetappsmanagement.Compliance Policy Rule Patch Selection Args - (Updatable) Patch Selection Details
- patch_
types Sequence[str] - (Updatable) PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies.
- product_
version fleetappsmanagement.Compliance Policy Rule Product Version Args - (Updatable) A specific product version or a specific version and succeeding. Example: 12.1 or 12.1 and above for Oracle WebLogic Application server. The policy applies to the next version only, and not to other versions such as, 12.1.x.
- severities Sequence[str]
(Updatable) Severity to which this CompliancePolicyRule applies.
** 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
- state str
- The current state of the CompliancePolicyRule.
- 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 date and time the CompliancePolicyRule was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- time_
updated str - The date and time the CompliancePolicyRule was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- compartment
Id String - The OCID of the compartment the CompliancePolicyRule belongs to.
- compliance
Policy StringId - Unique OCID of the CompliancePolicy this CompliancePolicyRule belongs to.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- 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
- 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"}
- grace
Period String - (Updatable) Grace period in days,weeks,months or years the exemption is applicable for the rule. This enables a grace period when Fleet Application Management doesn't report the product as noncompliant when patch is not applied.
- lifecycle
Details String - A message that describes the current state of the CompliancePolicyRule in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- patch
Selection Property Map - (Updatable) Patch Selection Details
- patch
Types List<String> - (Updatable) PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies.
- product
Version Property Map - (Updatable) A specific product version or a specific version and succeeding. Example: 12.1 or 12.1 and above for Oracle WebLogic Application server. The policy applies to the next version only, and not to other versions such as, 12.1.x.
- severities List<String>
(Updatable) Severity to which this CompliancePolicyRule applies.
** 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
- state String
- The current state of the CompliancePolicyRule.
- 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 date and time the CompliancePolicyRule was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- time
Updated String - The date and time the CompliancePolicyRule was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
Supporting Types
CompliancePolicyRulePatchSelection, CompliancePolicyRulePatchSelectionArgs
- Selection
Type string - (Updatable) Selection type for the Patch.
- Days
Since intRelease - (Updatable) Days passed since patch release.
- Patch
Level string - (Updatable) Patch Name.
- Patch
Name string - (Updatable) Patch Name.
- Selection
Type string - (Updatable) Selection type for the Patch.
- Days
Since intRelease - (Updatable) Days passed since patch release.
- Patch
Level string - (Updatable) Patch Name.
- Patch
Name string - (Updatable) Patch Name.
- selection
Type String - (Updatable) Selection type for the Patch.
- days
Since IntegerRelease - (Updatable) Days passed since patch release.
- patch
Level String - (Updatable) Patch Name.
- patch
Name String - (Updatable) Patch Name.
- selection
Type string - (Updatable) Selection type for the Patch.
- days
Since numberRelease - (Updatable) Days passed since patch release.
- patch
Level string - (Updatable) Patch Name.
- patch
Name string - (Updatable) Patch Name.
- selection_
type str - (Updatable) Selection type for the Patch.
- days_
since_ intrelease - (Updatable) Days passed since patch release.
- patch_
level str - (Updatable) Patch Name.
- patch_
name str - (Updatable) Patch Name.
- selection
Type String - (Updatable) Selection type for the Patch.
- days
Since NumberRelease - (Updatable) Days passed since patch release.
- patch
Level String - (Updatable) Patch Name.
- patch
Name String - (Updatable) Patch Name.
CompliancePolicyRuleProductVersion, CompliancePolicyRuleProductVersionArgs
- Version string
- (Updatable) Product version the rule is applicable.
- Is
Applicable boolFor All Higher Versions - (Updatable) Is rule applicable to all higher versions also
- Version string
- (Updatable) Product version the rule is applicable.
- Is
Applicable boolFor All Higher Versions - (Updatable) Is rule applicable to all higher versions also
- version String
- (Updatable) Product version the rule is applicable.
- is
Applicable BooleanFor All Higher Versions - (Updatable) Is rule applicable to all higher versions also
- version string
- (Updatable) Product version the rule is applicable.
- is
Applicable booleanFor All Higher Versions - (Updatable) Is rule applicable to all higher versions also
- version str
- (Updatable) Product version the rule is applicable.
- is_
applicable_ boolfor_ all_ higher_ versions - (Updatable) Is rule applicable to all higher versions also
- version String
- (Updatable) Product version the rule is applicable.
- is
Applicable BooleanFor All Higher Versions - (Updatable) Is rule applicable to all higher versions also
Import
CompliancePolicyRules can be imported using the id
, e.g.
$ pulumi import oci:FleetAppsManagement/compliancePolicyRule:CompliancePolicyRule test_compliance_policy_rule "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.