Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.networksecurity/v1.OrganizationAddressGroup
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a new address group in a given project and location. Auto-naming is currently not supported for this resource.
Create OrganizationAddressGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OrganizationAddressGroup(name: string, args: OrganizationAddressGroupArgs, opts?: CustomResourceOptions);
@overload
def OrganizationAddressGroup(resource_name: str,
args: OrganizationAddressGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OrganizationAddressGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
address_group_id: Optional[str] = None,
capacity: Optional[int] = None,
name: Optional[str] = None,
organization_id: Optional[str] = None,
type: Optional[OrganizationAddressGroupType] = None,
description: Optional[str] = None,
items: Optional[Sequence[str]] = None,
labels: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
request_id: Optional[str] = None)
func NewOrganizationAddressGroup(ctx *Context, name string, args OrganizationAddressGroupArgs, opts ...ResourceOption) (*OrganizationAddressGroup, error)
public OrganizationAddressGroup(string name, OrganizationAddressGroupArgs args, CustomResourceOptions? opts = null)
public OrganizationAddressGroup(String name, OrganizationAddressGroupArgs args)
public OrganizationAddressGroup(String name, OrganizationAddressGroupArgs args, CustomResourceOptions options)
type: google-native:networksecurity/v1:OrganizationAddressGroup
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 OrganizationAddressGroupArgs
- 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 OrganizationAddressGroupArgs
- 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 OrganizationAddressGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OrganizationAddressGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OrganizationAddressGroupArgs
- 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 organizationAddressGroupResource = new GoogleNative.NetworkSecurity.V1.OrganizationAddressGroup("organizationAddressGroupResource", new()
{
AddressGroupId = "string",
Capacity = 0,
Name = "string",
OrganizationId = "string",
Type = GoogleNative.NetworkSecurity.V1.OrganizationAddressGroupType.TypeUnspecified,
Description = "string",
Items = new[]
{
"string",
},
Labels =
{
{ "string", "string" },
},
Location = "string",
RequestId = "string",
});
example, err := networksecurity.NewOrganizationAddressGroup(ctx, "organizationAddressGroupResource", &networksecurity.OrganizationAddressGroupArgs{
AddressGroupId: pulumi.String("string"),
Capacity: pulumi.Int(0),
Name: pulumi.String("string"),
OrganizationId: pulumi.String("string"),
Type: networksecurity.OrganizationAddressGroupTypeTypeUnspecified,
Description: pulumi.String("string"),
Items: pulumi.StringArray{
pulumi.String("string"),
},
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Location: pulumi.String("string"),
RequestId: pulumi.String("string"),
})
var organizationAddressGroupResource = new OrganizationAddressGroup("organizationAddressGroupResource", OrganizationAddressGroupArgs.builder()
.addressGroupId("string")
.capacity(0)
.name("string")
.organizationId("string")
.type("TYPE_UNSPECIFIED")
.description("string")
.items("string")
.labels(Map.of("string", "string"))
.location("string")
.requestId("string")
.build());
organization_address_group_resource = google_native.networksecurity.v1.OrganizationAddressGroup("organizationAddressGroupResource",
address_group_id="string",
capacity=0,
name="string",
organization_id="string",
type=google_native.networksecurity.v1.OrganizationAddressGroupType.TYPE_UNSPECIFIED,
description="string",
items=["string"],
labels={
"string": "string",
},
location="string",
request_id="string")
const organizationAddressGroupResource = new google_native.networksecurity.v1.OrganizationAddressGroup("organizationAddressGroupResource", {
addressGroupId: "string",
capacity: 0,
name: "string",
organizationId: "string",
type: google_native.networksecurity.v1.OrganizationAddressGroupType.TypeUnspecified,
description: "string",
items: ["string"],
labels: {
string: "string",
},
location: "string",
requestId: "string",
});
type: google-native:networksecurity/v1:OrganizationAddressGroup
properties:
addressGroupId: string
capacity: 0
description: string
items:
- string
labels:
string: string
location: string
name: string
organizationId: string
requestId: string
type: TYPE_UNSPECIFIED
OrganizationAddressGroup 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 OrganizationAddressGroup resource accepts the following input properties:
- Address
Group stringId - Required. Short name of the AddressGroup resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. "authz_policy".
- Capacity int
- Capacity of the Address Group
- Name string
- Name of the AddressGroup resource. It matches pattern
projects/*/locations/{location}/addressGroups/
. - Organization
Id string - Type
Pulumi.
Google Native. Network Security. V1. Organization Address Group Type - The type of the Address Group. Possible values are "IPv4" or "IPV6".
- Description string
- Optional. Free-text description of the resource.
- Items List<string>
- Optional. List of items.
- Labels Dictionary<string, string>
- Optional. Set of label tags associated with the AddressGroup resource.
- Location string
- Request
Id string - Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- Address
Group stringId - Required. Short name of the AddressGroup resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. "authz_policy".
- Capacity int
- Capacity of the Address Group
- Name string
- Name of the AddressGroup resource. It matches pattern
projects/*/locations/{location}/addressGroups/
. - Organization
Id string - Type
Organization
Address Group Type - The type of the Address Group. Possible values are "IPv4" or "IPV6".
- Description string
- Optional. Free-text description of the resource.
- Items []string
- Optional. List of items.
- Labels map[string]string
- Optional. Set of label tags associated with the AddressGroup resource.
- Location string
- Request
Id string - Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- address
Group StringId - Required. Short name of the AddressGroup resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. "authz_policy".
- capacity Integer
- Capacity of the Address Group
- name String
- Name of the AddressGroup resource. It matches pattern
projects/*/locations/{location}/addressGroups/
. - organization
Id String - type
Organization
Address Group Type - The type of the Address Group. Possible values are "IPv4" or "IPV6".
- description String
- Optional. Free-text description of the resource.
- items List<String>
- Optional. List of items.
- labels Map<String,String>
- Optional. Set of label tags associated with the AddressGroup resource.
- location String
- request
Id String - Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- address
Group stringId - Required. Short name of the AddressGroup resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. "authz_policy".
- capacity number
- Capacity of the Address Group
- name string
- Name of the AddressGroup resource. It matches pattern
projects/*/locations/{location}/addressGroups/
. - organization
Id string - type
Organization
Address Group Type - The type of the Address Group. Possible values are "IPv4" or "IPV6".
- description string
- Optional. Free-text description of the resource.
- items string[]
- Optional. List of items.
- labels {[key: string]: string}
- Optional. Set of label tags associated with the AddressGroup resource.
- location string
- request
Id string - Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- address_
group_ strid - Required. Short name of the AddressGroup resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. "authz_policy".
- capacity int
- Capacity of the Address Group
- name str
- Name of the AddressGroup resource. It matches pattern
projects/*/locations/{location}/addressGroups/
. - organization_
id str - type
Organization
Address Group Type - The type of the Address Group. Possible values are "IPv4" or "IPV6".
- description str
- Optional. Free-text description of the resource.
- items Sequence[str]
- Optional. List of items.
- labels Mapping[str, str]
- Optional. Set of label tags associated with the AddressGroup resource.
- location str
- request_
id str - Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- address
Group StringId - Required. Short name of the AddressGroup resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. "authz_policy".
- capacity Number
- Capacity of the Address Group
- name String
- Name of the AddressGroup resource. It matches pattern
projects/*/locations/{location}/addressGroups/
. - organization
Id String - type "TYPE_UNSPECIFIED" | "IPV4" | "IPV6"
- The type of the Address Group. Possible values are "IPv4" or "IPV6".
- description String
- Optional. Free-text description of the resource.
- items List<String>
- Optional. List of items.
- labels Map<String>
- Optional. Set of label tags associated with the AddressGroup resource.
- location String
- request
Id String - Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
Outputs
All input properties are implicitly available as output properties. Additionally, the OrganizationAddressGroup resource produces the following output properties:
- Create
Time string - The timestamp when the resource was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Self
Link string - Server-defined fully-qualified URL for this resource.
- Update
Time string - The timestamp when the resource was updated.
- Create
Time string - The timestamp when the resource was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Self
Link string - Server-defined fully-qualified URL for this resource.
- Update
Time string - The timestamp when the resource was updated.
- create
Time String - The timestamp when the resource was created.
- id String
- The provider-assigned unique ID for this managed resource.
- self
Link String - Server-defined fully-qualified URL for this resource.
- update
Time String - The timestamp when the resource was updated.
- create
Time string - The timestamp when the resource was created.
- id string
- The provider-assigned unique ID for this managed resource.
- self
Link string - Server-defined fully-qualified URL for this resource.
- update
Time string - The timestamp when the resource was updated.
- create_
time str - The timestamp when the resource was created.
- id str
- The provider-assigned unique ID for this managed resource.
- self_
link str - Server-defined fully-qualified URL for this resource.
- update_
time str - The timestamp when the resource was updated.
- create
Time String - The timestamp when the resource was created.
- id String
- The provider-assigned unique ID for this managed resource.
- self
Link String - Server-defined fully-qualified URL for this resource.
- update
Time String - The timestamp when the resource was updated.
Supporting Types
OrganizationAddressGroupType, OrganizationAddressGroupTypeArgs
- Type
Unspecified - TYPE_UNSPECIFIEDDefault value.
- Ipv4
- IPV4IP v4 ranges.
- Ipv6
- IPV6IP v6 ranges.
- Organization
Address Group Type Type Unspecified - TYPE_UNSPECIFIEDDefault value.
- Organization
Address Group Type Ipv4 - IPV4IP v4 ranges.
- Organization
Address Group Type Ipv6 - IPV6IP v6 ranges.
- Type
Unspecified - TYPE_UNSPECIFIEDDefault value.
- Ipv4
- IPV4IP v4 ranges.
- Ipv6
- IPV6IP v6 ranges.
- Type
Unspecified - TYPE_UNSPECIFIEDDefault value.
- Ipv4
- IPV4IP v4 ranges.
- Ipv6
- IPV6IP v6 ranges.
- TYPE_UNSPECIFIED
- TYPE_UNSPECIFIEDDefault value.
- IPV4
- IPV4IP v4 ranges.
- IPV6
- IPV6IP v6 ranges.
- "TYPE_UNSPECIFIED"
- TYPE_UNSPECIFIEDDefault value.
- "IPV4"
- IPV4IP v4 ranges.
- "IPV6"
- IPV6IP v6 ranges.
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.