Package com.pulumi.gcp.cloudasset
Class OrganizationFeed
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.gcp.cloudasset.OrganizationFeed
-
public class OrganizationFeed extends com.pulumi.resources.CustomResource
Describes a Cloud Asset Inventory feed used to to listen to asset updates. To get more information about OrganizationFeed, see: * [API documentation](https://cloud.google.com/asset-inventory/docs/reference/rest/) * How-to Guides * [Official Documentation](https://cloud.google.com/asset-inventory/docs) ## Example Usage ## Import OrganizationFeed can be imported using any of these accepted formats ```sh $ pulumi import gcp:cloudasset/organizationFeed:OrganizationFeed default organizations/{{org_id}}/feeds/{{name}} ``` ```sh $ pulumi import gcp:cloudasset/organizationFeed:OrganizationFeed default {{org_id}}/{{name}} ```
-
-
Constructor Summary
Constructors Constructor Description OrganizationFeed(java.lang.String name)
OrganizationFeed(java.lang.String name, OrganizationFeedArgs args)
OrganizationFeed(java.lang.String name, OrganizationFeedArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>>
assetNames()
com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>>
assetTypes()
com.pulumi.core.Output<java.lang.String>
billingProject()
com.pulumi.core.Output<java.util.Optional<OrganizationFeedCondition>>
condition()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
contentType()
com.pulumi.core.Output<java.lang.String>
feedId()
com.pulumi.core.Output<OrganizationFeedFeedOutputConfig>
feedOutputConfig()
static OrganizationFeed
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, OrganizationFeedState state, com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>
name()
com.pulumi.core.Output<java.lang.String>
orgId()
-
-
-
Constructor Detail
-
OrganizationFeed
public OrganizationFeed(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
OrganizationFeed
public OrganizationFeed(java.lang.String name, OrganizationFeedArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
OrganizationFeed
public OrganizationFeed(java.lang.String name, OrganizationFeedArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.options
- A bag of options that control this resource's behavior.
-
-
Method Detail
-
assetNames
public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> assetNames()
- Returns:
- A list of the full names of the assets to receive updates. You must specify either or both of assetNames and assetTypes. Only asset updates matching specified assetNames and assetTypes are exported to the feed. For example: //compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1. See https://cloud.google.com/apis/design/resourceNames#fullResourceName for more info.
-
assetTypes
public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> assetTypes()
- Returns:
- A list of types of the assets to receive updates. You must specify either or both of assetNames and assetTypes. Only asset updates matching specified assetNames and assetTypes are exported to the feed. For example: "compute.googleapis.com/Disk" See https://cloud.google.com/asset-inventory/docs/supported-asset-types for a list of all supported asset types.
-
billingProject
public com.pulumi.core.Output<java.lang.String> billingProject()
- Returns:
- The project whose identity will be used when sending messages to the destination pubsub topic. It also specifies the project for API enablement check, quota, and billing.
-
condition
public com.pulumi.core.Output<java.util.Optional<OrganizationFeedCondition>> condition()
- Returns:
- A condition which determines whether an asset update should be published. If specified, an asset will be returned only when the expression evaluates to true. When set, expression field must be a valid CEL expression on a TemporalAsset with name temporal_asset. Example: a Feed with expression "temporal_asset.deleted == true" will only publish Asset deletions. Other fields of condition are optional. Structure is documented below.
-
contentType
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> contentType()
- Returns:
- Asset content type. If not specified, no content but the asset name and type will be returned. Possible values are `CONTENT_TYPE_UNSPECIFIED`, `RESOURCE`, `IAM_POLICY`, `ORG_POLICY`, and `ACCESS_POLICY`.
-
feedId
public com.pulumi.core.Output<java.lang.String> feedId()
- Returns:
- This is the client-assigned asset feed identifier and it needs to be unique under a specific parent.
-
feedOutputConfig
public com.pulumi.core.Output<OrganizationFeedFeedOutputConfig> feedOutputConfig()
- Returns:
- Output configuration for asset feed destination. Structure is documented below.
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- The format will be organizations/{organization_number}/feeds/{client-assigned_feed_identifier}.
-
orgId
public com.pulumi.core.Output<java.lang.String> orgId()
- Returns:
- The organization this feed should be created in.
-
get
public static OrganizationFeed get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable OrganizationFeedState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name
- The _unique_ name of the resulting resource.id
- The _unique_ provider ID of the resource to lookup.state
-options
- Optional settings to control the behavior of the CustomResource.
-
-