dome9.ContinuousCompliancePolicy
Explore with Pulumi AI
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:
- Notification
Ids List<string> - The notification policy id's for the policy [list].
- Target
Id string - The cloud account id.
- Target
Type string - The cloud account provider ("Aws", "Azure", "Gcp", "Kubernetes", "OrganizationalUnit").
- Continuous
Compliance stringPolicy Id - Id of the compliance policy.
- Ruleset
Id double - The bundle id for the bundle that will be used in the policy.
- Notification
Ids []string - The notification policy id's for the policy [list].
- Target
Id string - The cloud account id.
- Target
Type string - The cloud account provider ("Aws", "Azure", "Gcp", "Kubernetes", "OrganizationalUnit").
- Continuous
Compliance stringPolicy Id - Id of the compliance policy.
- Ruleset
Id float64 - The bundle id for the bundle that will be used in the policy.
- notification
Ids List<String> - The notification policy id's for the policy [list].
- target
Id String - The cloud account id.
- target
Type String - The cloud account provider ("Aws", "Azure", "Gcp", "Kubernetes", "OrganizationalUnit").
- continuous
Compliance StringPolicy Id - Id of the compliance policy.
- ruleset
Id Double - The bundle id for the bundle that will be used in the policy.
- notification
Ids string[] - The notification policy id's for the policy [list].
- target
Id string - The cloud account id.
- target
Type string - The cloud account provider ("Aws", "Azure", "Gcp", "Kubernetes", "OrganizationalUnit").
- continuous
Compliance stringPolicy Id - Id of the compliance policy.
- ruleset
Id 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_ strpolicy_ id - Id of the compliance policy.
- ruleset_
id float - The bundle id for the bundle that will be used in the policy.
- notification
Ids List<String> - The notification policy id's for the policy [list].
- target
Id String - The cloud account id.
- target
Type String - The cloud account provider ("Aws", "Azure", "Gcp", "Kubernetes", "OrganizationalUnit").
- continuous
Compliance StringPolicy Id - Id of the compliance policy.
- ruleset
Id 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.
- Continuous
Compliance stringPolicy Id - Id of the compliance policy.
- Notification
Ids List<string> - The notification policy id's for the policy [list].
- Ruleset
Id double - The bundle id for the bundle that will be used in the policy.
- Target
Id string - The cloud account id.
- Target
Type string - The cloud account provider ("Aws", "Azure", "Gcp", "Kubernetes", "OrganizationalUnit").
- Continuous
Compliance stringPolicy Id - Id of the compliance policy.
- Notification
Ids []string - The notification policy id's for the policy [list].
- Ruleset
Id float64 - The bundle id for the bundle that will be used in the policy.
- Target
Id string - The cloud account id.
- Target
Type string - The cloud account provider ("Aws", "Azure", "Gcp", "Kubernetes", "OrganizationalUnit").
- continuous
Compliance StringPolicy Id - Id of the compliance policy.
- notification
Ids List<String> - The notification policy id's for the policy [list].
- ruleset
Id Double - The bundle id for the bundle that will be used in the policy.
- target
Id String - The cloud account id.
- target
Type String - The cloud account provider ("Aws", "Azure", "Gcp", "Kubernetes", "OrganizationalUnit").
- continuous
Compliance stringPolicy Id - Id of the compliance policy.
- notification
Ids string[] - The notification policy id's for the policy [list].
- ruleset
Id number - The bundle id for the bundle that will be used in the policy.
- target
Id string - The cloud account id.
- target
Type string - The cloud account provider ("Aws", "Azure", "Gcp", "Kubernetes", "OrganizationalUnit").
- continuous_
compliance_ strpolicy_ id - 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").
- continuous
Compliance StringPolicy Id - Id of the compliance policy.
- notification
Ids List<String> - The notification policy id's for the policy [list].
- ruleset
Id Number - The bundle id for the bundle that will be used in the policy.
- target
Id String - The cloud account id.
- target
Type 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.