import * as pulumi from "@pulumi/pulumi"; /** * This resource provides the Steering Policy Attachment resource in Oracle Cloud Infrastructure DNS service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/dns/latest/SteeringPolicyAttachment * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/dns * * Creates a new attachment between a steering policy and a domain, giving the * policy permission to answer queries for the specified domain. A steering policy must * be attached to a domain for the policy to answer DNS queries for that domain. * * For the purposes of access control, the attachment is automatically placed * into the same compartment as the domain's zone. * * Attachments cannot be created for private zones. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testSteeringPolicyAttachment = new oci.dns.SteeringPolicyAttachment("test_steering_policy_attachment", { * domainName: steeringPolicyAttachmentDomainName, * steeringPolicyId: testSteeringPolicy.id, * zoneId: testZone.id, * displayName: steeringPolicyAttachmentDisplayName, * }); * ``` * * ## Import * * SteeringPolicyAttachments can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:Dns/steeringPolicyAttachment:SteeringPolicyAttachment test_steering_policy_attachment "id" * ``` */ export declare class SteeringPolicyAttachment extends pulumi.CustomResource { /** * Get an existing SteeringPolicyAttachment resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: SteeringPolicyAttachmentState, opts?: pulumi.CustomResourceOptions): SteeringPolicyAttachment; /** * Returns true if the given object is an instance of SteeringPolicyAttachment. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is SteeringPolicyAttachment; /** * The OCID of the compartment containing the steering policy attachment. */ readonly compartmentId: pulumi.Output; /** * (Updatable) A user-friendly name for the steering policy attachment. Does not have to be unique and can be changed. Avoid entering confidential information. */ readonly displayName: pulumi.Output; /** * The attached domain within the attached zone. `domainName` is case insensitive. */ readonly domainName: pulumi.Output; /** * The record types covered by the attachment at the domain. The set of record types is determined by aggregating the record types from the answers defined in the steering policy. */ readonly rtypes: pulumi.Output; /** * The canonical absolute URL of the resource. */ readonly self: pulumi.Output; /** * The current state of the resource. */ readonly state: pulumi.Output; /** * The OCID of the attached steering policy. */ readonly steeringPolicyId: pulumi.Output; /** * The date and time the resource was created, expressed in RFC 3339 timestamp format. */ readonly timeCreated: pulumi.Output; /** * The OCID of the attached zone. Must be a public zone. * * ** 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 */ readonly zoneId: pulumi.Output; /** * Create a SteeringPolicyAttachment resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: SteeringPolicyAttachmentArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering SteeringPolicyAttachment resources. */ export interface SteeringPolicyAttachmentState { /** * The OCID of the compartment containing the steering policy attachment. */ compartmentId?: pulumi.Input; /** * (Updatable) A user-friendly name for the steering policy attachment. Does not have to be unique and can be changed. Avoid entering confidential information. */ displayName?: pulumi.Input; /** * The attached domain within the attached zone. `domainName` is case insensitive. */ domainName?: pulumi.Input; /** * The record types covered by the attachment at the domain. The set of record types is determined by aggregating the record types from the answers defined in the steering policy. */ rtypes?: pulumi.Input[] | undefined>; /** * The canonical absolute URL of the resource. */ self?: pulumi.Input; /** * The current state of the resource. */ state?: pulumi.Input; /** * The OCID of the attached steering policy. */ steeringPolicyId?: pulumi.Input; /** * The date and time the resource was created, expressed in RFC 3339 timestamp format. */ timeCreated?: pulumi.Input; /** * The OCID of the attached zone. Must be a public zone. * * ** 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 */ zoneId?: pulumi.Input; } /** * The set of arguments for constructing a SteeringPolicyAttachment resource. */ export interface SteeringPolicyAttachmentArgs { /** * (Updatable) A user-friendly name for the steering policy attachment. Does not have to be unique and can be changed. Avoid entering confidential information. */ displayName?: pulumi.Input; /** * The attached domain within the attached zone. `domainName` is case insensitive. */ domainName: pulumi.Input; /** * The OCID of the attached steering policy. */ steeringPolicyId: pulumi.Input; /** * The OCID of the attached zone. Must be a public zone. * * ** 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 */ zoneId: pulumi.Input; } //# sourceMappingURL=steeringPolicyAttachment.d.ts.map