1. Packages
  2. Dome9 Provider
  3. API Docs
  4. ContinuousCompliancePolicy
dome9 1.40.3 published on Monday, Apr 14, 2025 by dome9

dome9.ContinuousCompliancePolicy

Explore with Pulumi AI

dome9 logo
dome9 1.40.3 published on Monday, Apr 14, 2025 by dome9

    Import

    The policy can be imported; use <POLICY ID> as the import ID.

    For example:

    $ pulumi import dome9:index/continuousCompliancePolicy:ContinuousCompliancePolicy test 00000000-0000-0000-0000-000000000000
    

    Create ContinuousCompliancePolicy Resource

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

    Constructor syntax

    new ContinuousCompliancePolicy(name: string, args: ContinuousCompliancePolicyArgs, opts?: CustomResourceOptions);
    @overload
    def ContinuousCompliancePolicy(resource_name: str,
                                   args: ContinuousCompliancePolicyArgs,
                                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def ContinuousCompliancePolicy(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   notification_ids: Optional[Sequence[str]] = None,
                                   target_id: Optional[str] = None,
                                   target_type: Optional[str] = None,
                                   continuous_compliance_policy_id: Optional[str] = None,
                                   ruleset_id: Optional[float] = None)
    func NewContinuousCompliancePolicy(ctx *Context, name string, args ContinuousCompliancePolicyArgs, opts ...ResourceOption) (*ContinuousCompliancePolicy, error)
    public ContinuousCompliancePolicy(string name, ContinuousCompliancePolicyArgs args, CustomResourceOptions? opts = null)
    public ContinuousCompliancePolicy(String name, ContinuousCompliancePolicyArgs args)
    public ContinuousCompliancePolicy(String name, ContinuousCompliancePolicyArgs args, CustomResourceOptions options)
    
    type: dome9:ContinuousCompliancePolicy
    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 ContinuousCompliancePolicyArgs
    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 ContinuousCompliancePolicyArgs
    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 ContinuousCompliancePolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ContinuousCompliancePolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ContinuousCompliancePolicyArgs
    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 continuousCompliancePolicyResource = new Dome9.ContinuousCompliancePolicy("continuousCompliancePolicyResource", new()
    {
        NotificationIds = new[]
        {
            "string",
        },
        TargetId = "string",
        TargetType = "string",
        ContinuousCompliancePolicyId = "string",
        RulesetId = 0,
    });
    
    example, err := dome9.NewContinuousCompliancePolicy(ctx, "continuousCompliancePolicyResource", &dome9.ContinuousCompliancePolicyArgs{
    	NotificationIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	TargetId:                     pulumi.String("string"),
    	TargetType:                   pulumi.String("string"),
    	ContinuousCompliancePolicyId: pulumi.String("string"),
    	RulesetId:                    pulumi.Float64(0),
    })
    
    var continuousCompliancePolicyResource = new ContinuousCompliancePolicy("continuousCompliancePolicyResource", ContinuousCompliancePolicyArgs.builder()
        .notificationIds("string")
        .targetId("string")
        .targetType("string")
        .continuousCompliancePolicyId("string")
        .rulesetId(0)
        .build());
    
    continuous_compliance_policy_resource = dome9.ContinuousCompliancePolicy("continuousCompliancePolicyResource",
        notification_ids=["string"],
        target_id="string",
        target_type="string",
        continuous_compliance_policy_id="string",
        ruleset_id=0)
    
    const continuousCompliancePolicyResource = new dome9.ContinuousCompliancePolicy("continuousCompliancePolicyResource", {
        notificationIds: ["string"],
        targetId: "string",
        targetType: "string",
        continuousCompliancePolicyId: "string",
        rulesetId: 0,
    });
    
    type: dome9:ContinuousCompliancePolicy
    properties:
        continuousCompliancePolicyId: string
        notificationIds:
            - string
        rulesetId: 0
        targetId: string
        targetType: string
    

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

    NotificationIds List<string>
    The notification policy id's for the policy [list].
    TargetId string
    The cloud account id.
    TargetType string
    The cloud account provider ("Aws", "Azure", "Gcp", "Kubernetes", "OrganizationalUnit").
    ContinuousCompliancePolicyId string
    Id of the compliance policy.
    RulesetId double
    The bundle id for the bundle that will be used in the policy.
    NotificationIds []string
    The notification policy id's for the policy [list].
    TargetId string
    The cloud account id.
    TargetType string
    The cloud account provider ("Aws", "Azure", "Gcp", "Kubernetes", "OrganizationalUnit").
    ContinuousCompliancePolicyId string
    Id of the compliance policy.
    RulesetId float64
    The bundle id for the bundle that will be used in the policy.
    notificationIds List<String>
    The notification policy id's for the policy [list].
    targetId String
    The cloud account id.
    targetType String
    The cloud account provider ("Aws", "Azure", "Gcp", "Kubernetes", "OrganizationalUnit").
    continuousCompliancePolicyId String
    Id of the compliance policy.
    rulesetId Double
    The bundle id for the bundle that will be used in the policy.
    notificationIds string[]
    The notification policy id's for the policy [list].
    targetId string
    The cloud account id.
    targetType string
    The cloud account provider ("Aws", "Azure", "Gcp", "Kubernetes", "OrganizationalUnit").
    continuousCompliancePolicyId string
    Id of the compliance policy.
    rulesetId number
    The bundle id for the bundle that will be used in the policy.
    notification_ids Sequence[str]
    The notification policy id's for the policy [list].
    target_id str
    The cloud account id.
    target_type str
    The cloud account provider ("Aws", "Azure", "Gcp", "Kubernetes", "OrganizationalUnit").
    continuous_compliance_policy_id str
    Id of the compliance policy.
    ruleset_id float
    The bundle id for the bundle that will be used in the policy.
    notificationIds List<String>
    The notification policy id's for the policy [list].
    targetId String
    The cloud account id.
    targetType String
    The cloud account provider ("Aws", "Azure", "Gcp", "Kubernetes", "OrganizationalUnit").
    continuousCompliancePolicyId String
    Id of the compliance policy.
    rulesetId Number
    The bundle id for the bundle that will be used in the policy.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ContinuousCompliancePolicy Resource

    Get an existing ContinuousCompliancePolicy 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?: ContinuousCompliancePolicyState, opts?: CustomResourceOptions): ContinuousCompliancePolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            continuous_compliance_policy_id: Optional[str] = None,
            notification_ids: Optional[Sequence[str]] = None,
            ruleset_id: Optional[float] = None,
            target_id: Optional[str] = None,
            target_type: Optional[str] = None) -> ContinuousCompliancePolicy
    func GetContinuousCompliancePolicy(ctx *Context, name string, id IDInput, state *ContinuousCompliancePolicyState, opts ...ResourceOption) (*ContinuousCompliancePolicy, error)
    public static ContinuousCompliancePolicy Get(string name, Input<string> id, ContinuousCompliancePolicyState? state, CustomResourceOptions? opts = null)
    public static ContinuousCompliancePolicy get(String name, Output<String> id, ContinuousCompliancePolicyState state, CustomResourceOptions options)
    resources:  _:    type: dome9:ContinuousCompliancePolicy    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.
    The following state arguments are supported:
    ContinuousCompliancePolicyId string
    Id of the compliance policy.
    NotificationIds List<string>
    The notification policy id's for the policy [list].
    RulesetId double
    The bundle id for the bundle that will be used in the policy.
    TargetId string
    The cloud account id.
    TargetType string
    The cloud account provider ("Aws", "Azure", "Gcp", "Kubernetes", "OrganizationalUnit").
    ContinuousCompliancePolicyId string
    Id of the compliance policy.
    NotificationIds []string
    The notification policy id's for the policy [list].
    RulesetId float64
    The bundle id for the bundle that will be used in the policy.
    TargetId string
    The cloud account id.
    TargetType string
    The cloud account provider ("Aws", "Azure", "Gcp", "Kubernetes", "OrganizationalUnit").
    continuousCompliancePolicyId String
    Id of the compliance policy.
    notificationIds List<String>
    The notification policy id's for the policy [list].
    rulesetId Double
    The bundle id for the bundle that will be used in the policy.
    targetId String
    The cloud account id.
    targetType String
    The cloud account provider ("Aws", "Azure", "Gcp", "Kubernetes", "OrganizationalUnit").
    continuousCompliancePolicyId string
    Id of the compliance policy.
    notificationIds string[]
    The notification policy id's for the policy [list].
    rulesetId number
    The bundle id for the bundle that will be used in the policy.
    targetId string
    The cloud account id.
    targetType string
    The cloud account provider ("Aws", "Azure", "Gcp", "Kubernetes", "OrganizationalUnit").
    continuous_compliance_policy_id str
    Id of the compliance policy.
    notification_ids Sequence[str]
    The notification policy id's for the policy [list].
    ruleset_id float
    The bundle id for the bundle that will be used in the policy.
    target_id str
    The cloud account id.
    target_type str
    The cloud account provider ("Aws", "Azure", "Gcp", "Kubernetes", "OrganizationalUnit").
    continuousCompliancePolicyId String
    Id of the compliance policy.
    notificationIds List<String>
    The notification policy id's for the policy [list].
    rulesetId Number
    The bundle id for the bundle that will be used in the policy.
    targetId String
    The cloud account id.
    targetType String
    The cloud account provider ("Aws", "Azure", "Gcp", "Kubernetes", "OrganizationalUnit").

    Package Details

    Repository
    dome9 dome9/terraform-provider-dome9
    License
    Notes
    This Pulumi package is based on the dome9 Terraform Provider.
    dome9 logo
    dome9 1.40.3 published on Monday, Apr 14, 2025 by dome9