<filename>sdk/python/pulumi_oci/core/get_drg_route_distribution_statements.py
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***

import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from . import outputs
from ._inputs import *

__all__ = [
    'GetDrgRouteDistributionStatementsResult',
    'AwaitableGetDrgRouteDistributionStatementsResult',
    'get_drg_route_distribution_statements',
]

@pulumi.output_type
class GetDrgRouteDistributionStatementsResult:
    """
    A collection of values returned by getDrgRouteDistributionStatements.
    """
    def __init__(__self__, drg_route_distribution_id=None, drg_route_distribution_statements=None, filters=None, id=None):
        if drg_route_distribution_id and not isinstance(drg_route_distribution_id, str):
            raise TypeError("Expected argument 'drg_route_distribution_id' to be a str")
        pulumi.set(__self__, "drg_route_distribution_id", drg_route_distribution_id)
        if drg_route_distribution_statements and not isinstance(drg_route_distribution_statements, list):
            raise TypeError("Expected argument 'drg_route_distribution_statements' to be a list")
        pulumi.set(__self__, "drg_route_distribution_statements", drg_route_distribution_statements)
        if filters and not isinstance(filters, list):
            raise TypeError("Expected argument 'filters' to be a list")
        pulumi.set(__self__, "filters", filters)
        if id and not isinstance(id, str):
            raise TypeError("Expected argument 'id' to be a str")
        pulumi.set(__self__, "id", id)

    @property
    @pulumi.getter(name="drgRouteDistributionId")
    def drg_route_distribution_id(self) -> str:
        return pulumi.get(self, "drg_route_distribution_id")

    @property
    @pulumi.getter(name="drgRouteDistributionStatements")
    def drg_route_distribution_statements(self) -> Sequence['outputs.GetDrgRouteDistributionStatementsDrgRouteDistributionStatementResult']:
        """
        The list of drg_route_distribution_statements.
        """
        return pulumi.get(self, "drg_route_distribution_statements")

    @property
    @pulumi.getter
    def filters(self) -> Optional[Sequence['outputs.GetDrgRouteDistributionStatementsFilterResult']]:
        return pulumi.get(self, "filters")

    @property
    @pulumi.getter
    def id(self) -> str:
        """
        The provider-assigned unique ID for this managed resource.
        """
        return pulumi.get(self, "id")


class AwaitableGetDrgRouteDistributionStatementsResult(GetDrgRouteDistributionStatementsResult):
    # pylint: disable=using-constant-test
    def __await__(self):
        if False:
            yield self
        return GetDrgRouteDistributionStatementsResult(
            drg_route_distribution_id=self.drg_route_distribution_id,
            drg_route_distribution_statements=self.drg_route_distribution_statements,
            filters=self.filters,
            id=self.id)


def get_drg_route_distribution_statements(drg_route_distribution_id: Optional[str] = None,
                                          filters: Optional[Sequence[pulumi.InputType['GetDrgRouteDistributionStatementsFilterArgs']]] = None,
                                          opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDrgRouteDistributionStatementsResult:
    """
    This data source provides the list of Drg Route Distribution Statements in Oracle Cloud Infrastructure Core service.

    Lists the statements for the specified route distribution.

    ## Example Usage

    ```python
    import pulumi
    import pulumi_oci as oci

    test_drg_route_distribution_statements = oci.core.get_drg_route_distribution_statements(drg_route_distribution_id=oci_core_drg_route_distribution["test_drg_route_distribution"]["id"])
    ```


    :param str drg_route_distribution_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route distribution.
    """
    __args__ = dict()
    __args__['drgRouteDistributionId'] = drg_route_distribution_id
    __args__['filters'] = filters
    if opts is None:
        opts = pulumi.InvokeOptions()
    if opts.version is None:
        opts.version = _utilities.get_version()
    __ret__ = pulumi.runtime.invoke('oci:core/getDrgRouteDistributionStatements:getDrgRouteDistributionStatements', __args__, opts=opts, typ=GetDrgRouteDistributionStatementsResult).value

    return AwaitableGetDrgRouteDistributionStatementsResult(
        drg_route_distribution_id=__ret__.drg_route_distribution_id,
        drg_route_distribution_statements=__ret__.drg_route_distribution_statements,
        filters=__ret__.filters,
        id=__ret__.id)

<filename>sdk/python/pulumi_oci/core/get_drg_route_distribution_statements.py
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***

import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from . import outputs
from ._inputs import *

__all__ = [
    'GetDrgRouteDistributionStatementsResult',
    'AwaitableGetDrgRouteDistributionStatementsResult',
    'get_drg_route_distribution_statements',
]

@pulumi.output_type
class GetDrgRouteDistributionStatementsResult:
    """
    A collection of values returned by getDrgRouteDistributionStatements.
    """
    def __init__(__self__, drg_route_distribution_id=None, drg_route_distribution_statements=None, filters=None, id=None):
        if drg_route_distribution_id and not isinstance(drg_route_distribution_id, str):
            raise TypeError("Expected argument 'drg_route_distribution_id' to be a str")
        pulumi.set(__self__, "drg_route_distribution_id", drg_route_distribution_id)
        if drg_route_distribution_statements and not isinstance(drg_route_distribution_statements, list):
            raise TypeError("Expected argument 'drg_route_distribution_statements' to be a list")
        pulumi.set(__self__, "drg_route_distribution_statements", drg_route_distribution_statements)
        if filters and not isinstance(filters, list):
            raise TypeError("Expected argument 'filters' to be a list")
        pulumi.set(__self__, "filters", filters)
        if id and not isinstance(id, str):
            raise TypeError("Expected argument 'id' to be a str")
        pulumi.set(__self__, "id", id)

    @property
    @pulumi.getter(name="drgRouteDistributionId")
    def drg_route_distribution_id(self) -> str:
        return pulumi.get(self, "drg_route_distribution_id")

    @property
    @pulumi.getter(name="drgRouteDistributionStatements")
    def drg_route_distribution_statements(self) -> Sequence['outputs.GetDrgRouteDistributionStatementsDrgRouteDistributionStatementResult']:
        """
        The list of drg_route_distribution_statements.
        """
        return pulumi.get(self, "drg_route_distribution_statements")

    @property
    @pulumi.getter
    def filters(self) -> Optional[Sequence['outputs.GetDrgRouteDistributionStatementsFilterResult']]:
        return pulumi.get(self, "filters")

    @property
    @pulumi.getter
    def id(self) -> str:
        """
        The provider-assigned unique ID for this managed resource.
        """
        return pulumi.get(self, "id")


class AwaitableGetDrgRouteDistributionStatementsResult(GetDrgRouteDistributionStatementsResult):
    # pylint: disable=using-constant-test
    def __await__(self):
        if False:
            yield self
        return GetDrgRouteDistributionStatementsResult(
            drg_route_distribution_id=self.drg_route_distribution_id,
            drg_route_distribution_statements=self.drg_route_distribution_statements,
            filters=self.filters,
            id=self.id)


def get_drg_route_distribution_statements(drg_route_distribution_id: Optional[str] = None,
                                          filters: Optional[Sequence[pulumi.InputType['GetDrgRouteDistributionStatementsFilterArgs']]] = None,
                                          opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDrgRouteDistributionStatementsResult:
    """
    This data source provides the list of Drg Route Distribution Statements in Oracle Cloud Infrastructure Core service.

    Lists the statements for the specified route distribution.

    ## Example Usage

    ```python
    import pulumi
    import pulumi_oci as oci

    test_drg_route_distribution_statements = oci.core.get_drg_route_distribution_statements(drg_route_distribution_id=oci_core_drg_route_distribution["test_drg_route_distribution"]["id"])
    ```


    :param str drg_route_distribution_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route distribution.
    """
    __args__ = dict()
    __args__['drgRouteDistributionId'] = drg_route_distribution_id
    __args__['filters'] = filters
    if opts is None:
        opts = pulumi.InvokeOptions()
    if opts.version is None:
        opts.version = _utilities.get_version()
    __ret__ = pulumi.runtime.invoke('oci:core/getDrgRouteDistributionStatements:getDrgRouteDistributionStatements', __args__, opts=opts, typ=GetDrgRouteDistributionStatementsResult).value

    return AwaitableGetDrgRouteDistributionStatementsResult(
        drg_route_distribution_id=__ret__.drg_route_distribution_id,
        drg_route_distribution_statements=__ret__.drg_route_distribution_statements,
        filters=__ret__.filters,
        id=__ret__.id)

# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** A collection of values returned by getDrgRouteDistributionStatements. The list of drg_route_distribution_statements. The provider-assigned unique ID for this managed resource. # pylint: disable=using-constant-test This data source provides the list of Drg Route Distribution Statements in Oracle Cloud Infrastructure Core service.      Lists the statements for the specified route distribution.      ## Example Usage      ```python     import pulumi     import pulumi_oci as oci      test_drg_route_distribution_statements = oci.core.get_drg_route_distribution_statements(drg_route_distribution_id=oci_core_drg_route_distribution["test_drg_route_distribution"]["id"])     ```       :param str drg_route_distribution_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route distribution.