Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 by Pulumi
gcp.dataform.RepositoryIamPolicy
Explore with Pulumi AI
Create RepositoryIamPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RepositoryIamPolicy(name: string, args: RepositoryIamPolicyArgs, opts?: CustomResourceOptions);
@overload
def RepositoryIamPolicy(resource_name: str,
args: RepositoryIamPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RepositoryIamPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
policy_data: Optional[str] = None,
repository: Optional[str] = None,
project: Optional[str] = None,
region: Optional[str] = None)
func NewRepositoryIamPolicy(ctx *Context, name string, args RepositoryIamPolicyArgs, opts ...ResourceOption) (*RepositoryIamPolicy, error)
public RepositoryIamPolicy(string name, RepositoryIamPolicyArgs args, CustomResourceOptions? opts = null)
public RepositoryIamPolicy(String name, RepositoryIamPolicyArgs args)
public RepositoryIamPolicy(String name, RepositoryIamPolicyArgs args, CustomResourceOptions options)
type: gcp:dataform:RepositoryIamPolicy
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 RepositoryIamPolicyArgs
- 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 RepositoryIamPolicyArgs
- 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 RepositoryIamPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RepositoryIamPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RepositoryIamPolicyArgs
- 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 gcpRepositoryIamPolicyResource = new Gcp.Dataform.RepositoryIamPolicy("gcpRepositoryIamPolicyResource", new()
{
PolicyData = "string",
Repository = "string",
Project = "string",
Region = "string",
});
example, err := dataform.NewRepositoryIamPolicy(ctx, "gcpRepositoryIamPolicyResource", &dataform.RepositoryIamPolicyArgs{
PolicyData: pulumi.String("string"),
Repository: pulumi.String("string"),
Project: pulumi.String("string"),
Region: pulumi.String("string"),
})
var gcpRepositoryIamPolicyResource = new RepositoryIamPolicy("gcpRepositoryIamPolicyResource", RepositoryIamPolicyArgs.builder()
.policyData("string")
.repository("string")
.project("string")
.region("string")
.build());
gcp_repository_iam_policy_resource = gcp.dataform.RepositoryIamPolicy("gcpRepositoryIamPolicyResource",
policy_data="string",
repository="string",
project="string",
region="string")
const gcpRepositoryIamPolicyResource = new gcp.dataform.RepositoryIamPolicy("gcpRepositoryIamPolicyResource", {
policyData: "string",
repository: "string",
project: "string",
region: "string",
});
type: gcp:dataform:RepositoryIamPolicy
properties:
policyData: string
project: string
region: string
repository: string
RepositoryIamPolicy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The RepositoryIamPolicy resource accepts the following input properties:
- Policy
Data string - Repository string
- Project string
- Region string
- Policy
Data string - Repository string
- Project string
- Region string
- policy
Data String - repository String
- project String
- region String
- policy
Data string - repository string
- project string
- region string
- policy_
data str - repository str
- project str
- region str
- policy
Data String - repository String
- project String
- region String
Outputs
All input properties are implicitly available as output properties. Additionally, the RepositoryIamPolicy resource produces the following output properties:
Look up Existing RepositoryIamPolicy Resource
Get an existing RepositoryIamPolicy 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?: RepositoryIamPolicyState, opts?: CustomResourceOptions): RepositoryIamPolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
etag: Optional[str] = None,
policy_data: Optional[str] = None,
project: Optional[str] = None,
region: Optional[str] = None,
repository: Optional[str] = None) -> RepositoryIamPolicy
func GetRepositoryIamPolicy(ctx *Context, name string, id IDInput, state *RepositoryIamPolicyState, opts ...ResourceOption) (*RepositoryIamPolicy, error)
public static RepositoryIamPolicy Get(string name, Input<string> id, RepositoryIamPolicyState? state, CustomResourceOptions? opts = null)
public static RepositoryIamPolicy get(String name, Output<String> id, RepositoryIamPolicyState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Etag string
- Policy
Data string - Project string
- Region string
- Repository string
- Etag string
- Policy
Data string - Project string
- Region string
- Repository string
- etag String
- policy
Data String - project String
- region String
- repository String
- etag string
- policy
Data string - project string
- region string
- repository string
- etag str
- policy_
data str - project str
- region str
- repository str
- etag String
- policy
Data String - project String
- region String
- repository String
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-beta
Terraform Provider.