Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.accesscontextmanager/v1beta.AccessPolicy
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Create an AccessPolicy
. Fails if this organization already has a AccessPolicy
. The longrunning Operation will have a successful status once the AccessPolicy
has propagated to long-lasting storage. Syntactic and basic semantic errors will be returned in metadata
as a BadRequest proto.
Auto-naming is currently not supported for this resource.
Create AccessPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AccessPolicy(name: string, args: AccessPolicyArgs, opts?: CustomResourceOptions);
@overload
def AccessPolicy(resource_name: str,
args: AccessPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AccessPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
parent: Optional[str] = None,
title: Optional[str] = None)
func NewAccessPolicy(ctx *Context, name string, args AccessPolicyArgs, opts ...ResourceOption) (*AccessPolicy, error)
public AccessPolicy(string name, AccessPolicyArgs args, CustomResourceOptions? opts = null)
public AccessPolicy(String name, AccessPolicyArgs args)
public AccessPolicy(String name, AccessPolicyArgs args, CustomResourceOptions options)
type: google-native:accesscontextmanager/v1beta:AccessPolicy
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 AccessPolicyArgs
- 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 AccessPolicyArgs
- 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 AccessPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AccessPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AccessPolicyArgs
- 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 google_nativeAccessPolicyResource = new GoogleNative.AccessContextManager.V1Beta.AccessPolicy("google-nativeAccessPolicyResource", new()
{
Parent = "string",
Title = "string",
});
example, err := accesscontextmanagerv1beta.NewAccessPolicy(ctx, "google-nativeAccessPolicyResource", &accesscontextmanagerv1beta.AccessPolicyArgs{
Parent: pulumi.String("string"),
Title: pulumi.String("string"),
})
var google_nativeAccessPolicyResource = new AccessPolicy("google-nativeAccessPolicyResource", AccessPolicyArgs.builder()
.parent("string")
.title("string")
.build());
google_native_access_policy_resource = google_native.accesscontextmanager.v1beta.AccessPolicy("google-nativeAccessPolicyResource",
parent="string",
title="string")
const google_nativeAccessPolicyResource = new google_native.accesscontextmanager.v1beta.AccessPolicy("google-nativeAccessPolicyResource", {
parent: "string",
title: "string",
});
type: google-native:accesscontextmanager/v1beta:AccessPolicy
properties:
parent: string
title: string
AccessPolicy 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 AccessPolicy resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the AccessPolicy resource produces the following output properties:
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.