published on Thursday, Jul 16, 2026 by Pulumi
published on Thursday, Jul 16, 2026 by Pulumi
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleShareRecipient = new cloudflare.ShareRecipient("example_share_recipient", {
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
shareId: "3fd85f74b32742f1bff64a85009dda07",
organizationId: "023e105f4ecef8ad9ca31a8372d0c353",
recipientAccountId: "023e105f4ecef8ad9ca31a8372d0c353",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_share_recipient = cloudflare.ShareRecipient("example_share_recipient",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
share_id="3fd85f74b32742f1bff64a85009dda07",
organization_id="023e105f4ecef8ad9ca31a8372d0c353",
recipient_account_id="023e105f4ecef8ad9ca31a8372d0c353")
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.NewShareRecipient(ctx, "example_share_recipient", &cloudflare.ShareRecipientArgs{
AccountId: pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
ShareId: pulumi.String("3fd85f74b32742f1bff64a85009dda07"),
OrganizationId: pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
RecipientAccountId: pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleShareRecipient = new Cloudflare.ShareRecipient("example_share_recipient", new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
ShareId = "3fd85f74b32742f1bff64a85009dda07",
OrganizationId = "023e105f4ecef8ad9ca31a8372d0c353",
RecipientAccountId = "023e105f4ecef8ad9ca31a8372d0c353",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.ShareRecipient;
import com.pulumi.cloudflare.ShareRecipientArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 exampleShareRecipient = new ShareRecipient("exampleShareRecipient", ShareRecipientArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.shareId("3fd85f74b32742f1bff64a85009dda07")
.organizationId("023e105f4ecef8ad9ca31a8372d0c353")
.recipientAccountId("023e105f4ecef8ad9ca31a8372d0c353")
.build());
}
}
resources:
exampleShareRecipient:
type: cloudflare:ShareRecipient
name: example_share_recipient
properties:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
shareId: 3fd85f74b32742f1bff64a85009dda07
organizationId: 023e105f4ecef8ad9ca31a8372d0c353
recipientAccountId: 023e105f4ecef8ad9ca31a8372d0c353
pulumi {
required_providers {
cloudflare = {
source = "pulumi/cloudflare"
}
}
}
resource "cloudflare_sharerecipient" "example_share_recipient" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
share_id = "3fd85f74b32742f1bff64a85009dda07"
organization_id = "023e105f4ecef8ad9ca31a8372d0c353"
recipient_account_id = "023e105f4ecef8ad9ca31a8372d0c353"
}
Create ShareRecipient Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ShareRecipient(name: string, args: ShareRecipientArgs, opts?: CustomResourceOptions);@overload
def ShareRecipient(resource_name: str,
args: ShareRecipientInitArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ShareRecipient(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
share_id: Optional[str] = None,
organization_id: Optional[str] = None,
recipient_account_id: Optional[str] = None)func NewShareRecipient(ctx *Context, name string, args ShareRecipientArgs, opts ...ResourceOption) (*ShareRecipient, error)public ShareRecipient(string name, ShareRecipientArgs args, CustomResourceOptions? opts = null)
public ShareRecipient(String name, ShareRecipientArgs args)
public ShareRecipient(String name, ShareRecipientArgs args, CustomResourceOptions options)
type: cloudflare:ShareRecipient
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "cloudflare_share_recipient" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ShareRecipientArgs
- 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 ShareRecipientInitArgs
- 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 ShareRecipientArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ShareRecipientArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ShareRecipientArgs
- 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 shareRecipientResource = new Cloudflare.ShareRecipient("shareRecipientResource", new()
{
AccountId = "string",
ShareId = "string",
OrganizationId = "string",
RecipientAccountId = "string",
});
example, err := cloudflare.NewShareRecipient(ctx, "shareRecipientResource", &cloudflare.ShareRecipientArgs{
AccountId: pulumi.String("string"),
ShareId: pulumi.String("string"),
OrganizationId: pulumi.String("string"),
RecipientAccountId: pulumi.String("string"),
})
resource "cloudflare_share_recipient" "shareRecipientResource" {
lifecycle {
create_before_destroy = true
}
account_id = "string"
share_id = "string"
organization_id = "string"
recipient_account_id = "string"
}
var shareRecipientResource = new ShareRecipient("shareRecipientResource", ShareRecipientArgs.builder()
.accountId("string")
.shareId("string")
.organizationId("string")
.recipientAccountId("string")
.build());
share_recipient_resource = cloudflare.ShareRecipient("shareRecipientResource",
account_id="string",
share_id="string",
organization_id="string",
recipient_account_id="string")
const shareRecipientResource = new cloudflare.ShareRecipient("shareRecipientResource", {
accountId: "string",
shareId: "string",
organizationId: "string",
recipientAccountId: "string",
});
type: cloudflare:ShareRecipient
properties:
accountId: string
organizationId: string
recipientAccountId: string
shareId: string
ShareRecipient 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 ShareRecipient resource accepts the following input properties:
- Account
Id string - Account identifier.
- string
- Share identifier tag.
- Organization
Id string - Organization identifier.
- Recipient
Account stringId - The account that will receive the share.
- Account
Id string - Account identifier.
- string
- Share identifier tag.
- Organization
Id string - Organization identifier.
- Recipient
Account stringId - The account that will receive the share.
- account_
id string - Account identifier.
- string
- Share identifier tag.
- organization_
id string - Organization identifier.
- recipient_
account_ stringid - The account that will receive the share.
- account
Id String - Account identifier.
- String
- Share identifier tag.
- organization
Id String - Organization identifier.
- recipient
Account StringId - The account that will receive the share.
- account
Id string - Account identifier.
- string
- Share identifier tag.
- organization
Id string - Organization identifier.
- recipient
Account stringId - The account that will receive the share.
- account_
id str - Account identifier.
- str
- Share identifier tag.
- organization_
id str - Organization identifier.
- recipient_
account_ strid - The account that will receive the share.
- account
Id String - Account identifier.
- String
- Share identifier tag.
- organization
Id String - Organization identifier.
- recipient
Account StringId - The account that will receive the share.
Outputs
All input properties are implicitly available as output properties. Additionally, the ShareRecipient resource produces the following output properties:
- Association
Status string - Share Recipient association status. Available values: "associating", "associated", "disassociating", "disassociated".
- Created string
- When the share was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Modified string
- When the share was modified.
- Resources
List<Share
Recipient Resource>
- Association
Status string - Share Recipient association status. Available values: "associating", "associated", "disassociating", "disassociated".
- Created string
- When the share was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Modified string
- When the share was modified.
- Resources
[]Share
Recipient Resource
- association_
status string - Share Recipient association status. Available values: "associating", "associated", "disassociating", "disassociated".
- created string
- When the share was created.
- id string
- The provider-assigned unique ID for this managed resource.
- modified string
- When the share was modified.
- resources list(object)
- association
Status String - Share Recipient association status. Available values: "associating", "associated", "disassociating", "disassociated".
- created String
- When the share was created.
- id String
- The provider-assigned unique ID for this managed resource.
- modified String
- When the share was modified.
- resources
List<Share
Recipient Resource>
- association
Status string - Share Recipient association status. Available values: "associating", "associated", "disassociating", "disassociated".
- created string
- When the share was created.
- id string
- The provider-assigned unique ID for this managed resource.
- modified string
- When the share was modified.
- resources
Share
Recipient Resource[]
- association_
status str - Share Recipient association status. Available values: "associating", "associated", "disassociating", "disassociated".
- created str
- When the share was created.
- id str
- The provider-assigned unique ID for this managed resource.
- modified str
- When the share was modified.
- resources
Sequence[Share
Recipient Resource]
- association
Status String - Share Recipient association status. Available values: "associating", "associated", "disassociating", "disassociated".
- created String
- When the share was created.
- id String
- The provider-assigned unique ID for this managed resource.
- modified String
- When the share was modified.
- resources List<Property Map>
Look up Existing ShareRecipient Resource
Get an existing ShareRecipient 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?: ShareRecipientState, opts?: CustomResourceOptions): ShareRecipient@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
association_status: Optional[str] = None,
created: Optional[str] = None,
modified: Optional[str] = None,
organization_id: Optional[str] = None,
recipient_account_id: Optional[str] = None,
resources: Optional[Sequence[ShareRecipientResourceArgs]] = None,
share_id: Optional[str] = None) -> ShareRecipientfunc GetShareRecipient(ctx *Context, name string, id IDInput, state *ShareRecipientState, opts ...ResourceOption) (*ShareRecipient, error)public static ShareRecipient Get(string name, Input<string> id, ShareRecipientState? state, CustomResourceOptions? opts = null)public static ShareRecipient get(String name, Output<String> id, ShareRecipientState state, CustomResourceOptions options)resources: _: type: cloudflare:ShareRecipient get: id: ${id}import {
to = cloudflare_share_recipient.example
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.
- Account
Id string - Account identifier.
- Association
Status string - Share Recipient association status. Available values: "associating", "associated", "disassociating", "disassociated".
- Created string
- When the share was created.
- Modified string
- When the share was modified.
- Organization
Id string - Organization identifier.
- Recipient
Account stringId - The account that will receive the share.
- Resources
List<Share
Recipient Resource> - string
- Share identifier tag.
- Account
Id string - Account identifier.
- Association
Status string - Share Recipient association status. Available values: "associating", "associated", "disassociating", "disassociated".
- Created string
- When the share was created.
- Modified string
- When the share was modified.
- Organization
Id string - Organization identifier.
- Recipient
Account stringId - The account that will receive the share.
- Resources
[]Share
Recipient Resource Args - string
- Share identifier tag.
- account_
id string - Account identifier.
- association_
status string - Share Recipient association status. Available values: "associating", "associated", "disassociating", "disassociated".
- created string
- When the share was created.
- modified string
- When the share was modified.
- organization_
id string - Organization identifier.
- recipient_
account_ stringid - The account that will receive the share.
- resources list(object)
- string
- Share identifier tag.
- account
Id String - Account identifier.
- association
Status String - Share Recipient association status. Available values: "associating", "associated", "disassociating", "disassociated".
- created String
- When the share was created.
- modified String
- When the share was modified.
- organization
Id String - Organization identifier.
- recipient
Account StringId - The account that will receive the share.
- resources
List<Share
Recipient Resource> - String
- Share identifier tag.
- account
Id string - Account identifier.
- association
Status string - Share Recipient association status. Available values: "associating", "associated", "disassociating", "disassociated".
- created string
- When the share was created.
- modified string
- When the share was modified.
- organization
Id string - Organization identifier.
- recipient
Account stringId - The account that will receive the share.
- resources
Share
Recipient Resource[] - string
- Share identifier tag.
- account_
id str - Account identifier.
- association_
status str - Share Recipient association status. Available values: "associating", "associated", "disassociating", "disassociated".
- created str
- When the share was created.
- modified str
- When the share was modified.
- organization_
id str - Organization identifier.
- recipient_
account_ strid - The account that will receive the share.
- resources
Sequence[Share
Recipient Resource Args] - str
- Share identifier tag.
- account
Id String - Account identifier.
- association
Status String - Share Recipient association status. Available values: "associating", "associated", "disassociating", "disassociated".
- created String
- When the share was created.
- modified String
- When the share was modified.
- organization
Id String - Organization identifier.
- recipient
Account StringId - The account that will receive the share.
- resources List<Property Map>
- String
- Share identifier tag.
Supporting Types
ShareRecipientResource, ShareRecipientResourceArgs
- Error string
- Share Recipient error message.
- Resource
Id string - Share Resource identifier.
- Resource
Version int - Resource Version.
- Terminal bool
- Whether the error is terminal or will be continually retried.
- Error string
- Share Recipient error message.
- Resource
Id string - Share Resource identifier.
- Resource
Version int - Resource Version.
- Terminal bool
- Whether the error is terminal or will be continually retried.
- error string
- Share Recipient error message.
- resource_
id string - Share Resource identifier.
- resource_
version number - Resource Version.
- terminal bool
- Whether the error is terminal or will be continually retried.
- error String
- Share Recipient error message.
- resource
Id String - Share Resource identifier.
- resource
Version Integer - Resource Version.
- terminal Boolean
- Whether the error is terminal or will be continually retried.
- error string
- Share Recipient error message.
- resource
Id string - Share Resource identifier.
- resource
Version number - Resource Version.
- terminal boolean
- Whether the error is terminal or will be continually retried.
- error str
- Share Recipient error message.
- resource_
id str - Share Resource identifier.
- resource_
version int - Resource Version.
- terminal bool
- Whether the error is terminal or will be continually retried.
- error String
- Share Recipient error message.
- resource
Id String - Share Resource identifier.
- resource
Version Number - Resource Version.
- terminal Boolean
- Whether the error is terminal or will be continually retried.
Import
$ pulumi import cloudflare:index/shareRecipient:ShareRecipient example '<account_id>/<share_id>/<recipient_id>'
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflareTerraform Provider.
published on Thursday, Jul 16, 2026 by Pulumi