import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Peer resource in Oracle Cloud Infrastructure Blockchain service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/blockchain/latest/Peer * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/blockchain * * Create Blockchain Platform Peer * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testPeer = new oci.blockchain.Peer("test_peer", { * ad: peerAd, * blockchainPlatformId: testBlockchainPlatform.id, * ocpuAllocationParam: { * ocpuAllocationNumber: peerOcpuAllocationParamOcpuAllocationNumber, * }, * role: peerRole, * alias: peerAlias, * }); * ``` * * ## Import * * Peers can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:Blockchain/peer:Peer test_peer "blockchainPlatforms/{blockchainPlatformId}/peers/{peerId}" * ``` */ export declare class Peer extends pulumi.CustomResource { /** * Get an existing Peer 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?: PeerState, opts?: pulumi.CustomResourceOptions): Peer; /** * Returns true if the given object is an instance of Peer. 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 Peer; /** * Availability Domain to place new peer */ readonly ad: pulumi.Output; /** * peer alias */ readonly alias: pulumi.Output; /** * Unique service identifier. */ readonly blockchainPlatformId: pulumi.Output; /** * Host on which the Peer exists */ readonly host: pulumi.Output; /** * (Updatable) OCPU allocation parameter */ readonly ocpuAllocationParam: pulumi.Output; /** * peer identifier */ readonly peerKey: pulumi.Output; /** * Peer role * * ** 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 role: pulumi.Output; /** * The current state of the peer. */ readonly state: pulumi.Output; /** * Create a Peer 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: PeerArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Peer resources. */ export interface PeerState { /** * Availability Domain to place new peer */ ad?: pulumi.Input; /** * peer alias */ alias?: pulumi.Input; /** * Unique service identifier. */ blockchainPlatformId?: pulumi.Input; /** * Host on which the Peer exists */ host?: pulumi.Input; /** * (Updatable) OCPU allocation parameter */ ocpuAllocationParam?: pulumi.Input; /** * peer identifier */ peerKey?: pulumi.Input; /** * Peer role * * ** 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 */ role?: pulumi.Input; /** * The current state of the peer. */ state?: pulumi.Input; } /** * The set of arguments for constructing a Peer resource. */ export interface PeerArgs { /** * Availability Domain to place new peer */ ad: pulumi.Input; /** * peer alias */ alias?: pulumi.Input; /** * Unique service identifier. */ blockchainPlatformId: pulumi.Input; /** * (Updatable) OCPU allocation parameter */ ocpuAllocationParam: pulumi.Input; /** * Peer role * * ** 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 */ role: pulumi.Input; } //# sourceMappingURL=peer.d.ts.map