aiven.OrganizationAddress
Explore with Pulumi AI
Creates and manages an organization address.
This resource is in the beta stage and may change without notice. Set
the PROVIDER_AIVEN_ENABLE_BETA
environment variable to use the resource.
Create OrganizationAddress Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OrganizationAddress(name: string, args: OrganizationAddressArgs, opts?: CustomResourceOptions);
@overload
def OrganizationAddress(resource_name: str,
args: OrganizationAddressArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OrganizationAddress(resource_name: str,
opts: Optional[ResourceOptions] = None,
address_lines: Optional[Sequence[str]] = None,
city: Optional[str] = None,
country_code: Optional[str] = None,
organization_id: Optional[str] = None,
name: Optional[str] = None,
state: Optional[str] = None,
timeouts: Optional[OrganizationAddressTimeoutsArgs] = None,
zip_code: Optional[str] = None)
func NewOrganizationAddress(ctx *Context, name string, args OrganizationAddressArgs, opts ...ResourceOption) (*OrganizationAddress, error)
public OrganizationAddress(string name, OrganizationAddressArgs args, CustomResourceOptions? opts = null)
public OrganizationAddress(String name, OrganizationAddressArgs args)
public OrganizationAddress(String name, OrganizationAddressArgs args, CustomResourceOptions options)
type: aiven:OrganizationAddress
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 OrganizationAddressArgs
- 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 OrganizationAddressArgs
- 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 OrganizationAddressArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OrganizationAddressArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OrganizationAddressArgs
- 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 organizationAddressResource = new Aiven.OrganizationAddress("organizationAddressResource", new()
{
AddressLines = new[]
{
"string",
},
City = "string",
CountryCode = "string",
OrganizationId = "string",
Name = "string",
State = "string",
Timeouts = new Aiven.Inputs.OrganizationAddressTimeoutsArgs
{
Create = "string",
Delete = "string",
Read = "string",
Update = "string",
},
ZipCode = "string",
});
example, err := aiven.NewOrganizationAddress(ctx, "organizationAddressResource", &aiven.OrganizationAddressArgs{
AddressLines: pulumi.StringArray{
pulumi.String("string"),
},
City: pulumi.String("string"),
CountryCode: pulumi.String("string"),
OrganizationId: pulumi.String("string"),
Name: pulumi.String("string"),
State: pulumi.String("string"),
Timeouts: &aiven.OrganizationAddressTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Read: pulumi.String("string"),
Update: pulumi.String("string"),
},
ZipCode: pulumi.String("string"),
})
var organizationAddressResource = new OrganizationAddress("organizationAddressResource", OrganizationAddressArgs.builder()
.addressLines("string")
.city("string")
.countryCode("string")
.organizationId("string")
.name("string")
.state("string")
.timeouts(OrganizationAddressTimeoutsArgs.builder()
.create("string")
.delete("string")
.read("string")
.update("string")
.build())
.zipCode("string")
.build());
organization_address_resource = aiven.OrganizationAddress("organizationAddressResource",
address_lines=["string"],
city="string",
country_code="string",
organization_id="string",
name="string",
state="string",
timeouts={
"create": "string",
"delete": "string",
"read": "string",
"update": "string",
},
zip_code="string")
const organizationAddressResource = new aiven.OrganizationAddress("organizationAddressResource", {
addressLines: ["string"],
city: "string",
countryCode: "string",
organizationId: "string",
name: "string",
state: "string",
timeouts: {
create: "string",
"delete": "string",
read: "string",
update: "string",
},
zipCode: "string",
});
type: aiven:OrganizationAddress
properties:
addressLines:
- string
city: string
countryCode: string
name: string
organizationId: string
state: string
timeouts:
create: string
delete: string
read: string
update: string
zipCode: string
OrganizationAddress 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 OrganizationAddress resource accepts the following input properties:
- Address
Lines List<string> - Address Lines.
- City string
- City.
- Country
Code string - Country Code.
- Organization
Id string - ID of an organization. Maximum length:
36
. Changing this property forces recreation of the resource. - Name string
- Name of a company. Maximum length:
128
. - State string
- State. Maximum length:
128
. - Timeouts
Organization
Address Timeouts - Zip
Code string - Zip Code. Maximum length:
32
.
- Address
Lines []string - Address Lines.
- City string
- City.
- Country
Code string - Country Code.
- Organization
Id string - ID of an organization. Maximum length:
36
. Changing this property forces recreation of the resource. - Name string
- Name of a company. Maximum length:
128
. - State string
- State. Maximum length:
128
. - Timeouts
Organization
Address Timeouts Args - Zip
Code string - Zip Code. Maximum length:
32
.
- address
Lines List<String> - Address Lines.
- city String
- City.
- country
Code String - Country Code.
- organization
Id String - ID of an organization. Maximum length:
36
. Changing this property forces recreation of the resource. - name String
- Name of a company. Maximum length:
128
. - state String
- State. Maximum length:
128
. - timeouts
Organization
Address Timeouts - zip
Code String - Zip Code. Maximum length:
32
.
- address
Lines string[] - Address Lines.
- city string
- City.
- country
Code string - Country Code.
- organization
Id string - ID of an organization. Maximum length:
36
. Changing this property forces recreation of the resource. - name string
- Name of a company. Maximum length:
128
. - state string
- State. Maximum length:
128
. - timeouts
Organization
Address Timeouts - zip
Code string - Zip Code. Maximum length:
32
.
- address_
lines Sequence[str] - Address Lines.
- city str
- City.
- country_
code str - Country Code.
- organization_
id str - ID of an organization. Maximum length:
36
. Changing this property forces recreation of the resource. - name str
- Name of a company. Maximum length:
128
. - state str
- State. Maximum length:
128
. - timeouts
Organization
Address Timeouts Args - zip_
code str - Zip Code. Maximum length:
32
.
- address
Lines List<String> - Address Lines.
- city String
- City.
- country
Code String - Country Code.
- organization
Id String - ID of an organization. Maximum length:
36
. Changing this property forces recreation of the resource. - name String
- Name of a company. Maximum length:
128
. - state String
- State. Maximum length:
128
. - timeouts Property Map
- zip
Code String - Zip Code. Maximum length:
32
.
Outputs
All input properties are implicitly available as output properties. Additionally, the OrganizationAddress resource produces the following output properties:
- Address
Id string - Address ID.
- Create
Time string - Create Time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time string - Update Time.
- Address
Id string - Address ID.
- Create
Time string - Create Time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time string - Update Time.
- address
Id String - Address ID.
- create
Time String - Create Time.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time String - Update Time.
- address
Id string - Address ID.
- create
Time string - Create Time.
- id string
- The provider-assigned unique ID for this managed resource.
- update
Time string - Update Time.
- address_
id str - Address ID.
- create_
time str - Create Time.
- id str
- The provider-assigned unique ID for this managed resource.
- update_
time str - Update Time.
- address
Id String - Address ID.
- create
Time String - Create Time.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time String - Update Time.
Look up Existing OrganizationAddress Resource
Get an existing OrganizationAddress 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?: OrganizationAddressState, opts?: CustomResourceOptions): OrganizationAddress
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
address_id: Optional[str] = None,
address_lines: Optional[Sequence[str]] = None,
city: Optional[str] = None,
country_code: Optional[str] = None,
create_time: Optional[str] = None,
name: Optional[str] = None,
organization_id: Optional[str] = None,
state: Optional[str] = None,
timeouts: Optional[OrganizationAddressTimeoutsArgs] = None,
update_time: Optional[str] = None,
zip_code: Optional[str] = None) -> OrganizationAddress
func GetOrganizationAddress(ctx *Context, name string, id IDInput, state *OrganizationAddressState, opts ...ResourceOption) (*OrganizationAddress, error)
public static OrganizationAddress Get(string name, Input<string> id, OrganizationAddressState? state, CustomResourceOptions? opts = null)
public static OrganizationAddress get(String name, Output<String> id, OrganizationAddressState state, CustomResourceOptions options)
resources: _: type: aiven:OrganizationAddress get: 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.
- Address
Id string - Address ID.
- Address
Lines List<string> - Address Lines.
- City string
- City.
- Country
Code string - Country Code.
- Create
Time string - Create Time.
- Name string
- Name of a company. Maximum length:
128
. - Organization
Id string - ID of an organization. Maximum length:
36
. Changing this property forces recreation of the resource. - State string
- State. Maximum length:
128
. - Timeouts
Organization
Address Timeouts - Update
Time string - Update Time.
- Zip
Code string - Zip Code. Maximum length:
32
.
- Address
Id string - Address ID.
- Address
Lines []string - Address Lines.
- City string
- City.
- Country
Code string - Country Code.
- Create
Time string - Create Time.
- Name string
- Name of a company. Maximum length:
128
. - Organization
Id string - ID of an organization. Maximum length:
36
. Changing this property forces recreation of the resource. - State string
- State. Maximum length:
128
. - Timeouts
Organization
Address Timeouts Args - Update
Time string - Update Time.
- Zip
Code string - Zip Code. Maximum length:
32
.
- address
Id String - Address ID.
- address
Lines List<String> - Address Lines.
- city String
- City.
- country
Code String - Country Code.
- create
Time String - Create Time.
- name String
- Name of a company. Maximum length:
128
. - organization
Id String - ID of an organization. Maximum length:
36
. Changing this property forces recreation of the resource. - state String
- State. Maximum length:
128
. - timeouts
Organization
Address Timeouts - update
Time String - Update Time.
- zip
Code String - Zip Code. Maximum length:
32
.
- address
Id string - Address ID.
- address
Lines string[] - Address Lines.
- city string
- City.
- country
Code string - Country Code.
- create
Time string - Create Time.
- name string
- Name of a company. Maximum length:
128
. - organization
Id string - ID of an organization. Maximum length:
36
. Changing this property forces recreation of the resource. - state string
- State. Maximum length:
128
. - timeouts
Organization
Address Timeouts - update
Time string - Update Time.
- zip
Code string - Zip Code. Maximum length:
32
.
- address_
id str - Address ID.
- address_
lines Sequence[str] - Address Lines.
- city str
- City.
- country_
code str - Country Code.
- create_
time str - Create Time.
- name str
- Name of a company. Maximum length:
128
. - organization_
id str - ID of an organization. Maximum length:
36
. Changing this property forces recreation of the resource. - state str
- State. Maximum length:
128
. - timeouts
Organization
Address Timeouts Args - update_
time str - Update Time.
- zip_
code str - Zip Code. Maximum length:
32
.
- address
Id String - Address ID.
- address
Lines List<String> - Address Lines.
- city String
- City.
- country
Code String - Country Code.
- create
Time String - Create Time.
- name String
- Name of a company. Maximum length:
128
. - organization
Id String - ID of an organization. Maximum length:
36
. Changing this property forces recreation of the resource. - state String
- State. Maximum length:
128
. - timeouts Property Map
- update
Time String - Update Time.
- zip
Code String - Zip Code. Maximum length:
32
.
Supporting Types
OrganizationAddressTimeouts, OrganizationAddressTimeoutsArgs
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- update str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Package Details
- Repository
- Aiven pulumi/pulumi-aiven
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aiven
Terraform Provider.